Asposecpplib
System::Security::Cryptography::X509Certificates Namespace Reference

Classes

class  X500DistinguishedName
 Represents distinguished name of X509 certificate. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  X509Certificate
 X.509 v.3 certificate. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  X509Certificate2
 Represents X509 certificate. Not implemented. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  X509Certificate2Collection
 Collection of X509 certificate objects. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  X509Certificate2CollectionPtr
 Pointer to collection of X509 certificates. This type is a pointer to manage other object's deletion. It should be allocated on stack and passed to functions either by value or by const reference. More...
 
class  X509CertificateCollection
 Collection of X509 certificate objects. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  X509CertificateCollectionPtr
 Pointer to collection of X509 certificates. This type is a pointer to manage other object's deletion. It should be allocated on stack and passed to functions either by value or by const reference. More...
 
class  X509Chain
 
class  X509Extension
 Extension object to keep extra information associated with X.509 certificate. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  X509ExtensionCollection
 Collection of extension objects. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  X509ExtensionEnumerator
 Enumerator to iterate through extension collection. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 

Enumerations

enum  X500DistinguishedNameFlags {
  X500DistinguishedNameFlags::None = 0, X500DistinguishedNameFlags::Reversed = 1, X500DistinguishedNameFlags::UseSemicolons = 16, X500DistinguishedNameFlags::DoNotUsePlusSign = 32,
  X500DistinguishedNameFlags::DoNotUseQuotes = 64, X500DistinguishedNameFlags::UseCommas = 128, X500DistinguishedNameFlags::UseNewLines = 256, X500DistinguishedNameFlags::UseUTF8Encoding = 4096,
  X500DistinguishedNameFlags::UseT61Encoding = 8192, X500DistinguishedNameFlags::ForceUTF8Encoding = 16384
}
 X509 certificate distinguished name formatting rules. More...
 
enum  X509ContentType {
  X509ContentType::Unknown = 0, X509ContentType::Cert = 1, X509ContentType::SerializedCert = 2, X509ContentType::Pkcs12 = 3,
  X509ContentType::Pfx = 3, X509ContentType::SerializedStore = 4, X509ContentType::Pkcs7 = 5, X509ContentType::Authenticode = 6
}
 Format of X.509 certificate. More...
 
enum  X509IncludeOption { X509IncludeOption::None = 0, X509IncludeOption::ExcludeRoot = 1, X509IncludeOption::EndCertOnly = 2, X509IncludeOption::WholeChain = 3 }
 Specifies what certificates in chain to include. More...
 
enum  X509KeyStorageFlags {
  X509KeyStorageFlags::DefaultKeySet = 0, X509KeyStorageFlags::UserKeySet = 1, X509KeyStorageFlags::MachineKeySet = 2, X509KeyStorageFlags::Exportable = 4,
  X509KeyStorageFlags::UserProtected = 8, X509KeyStorageFlags::PersistKeySet = 16
}
 Defines how to store key. More...
 
enum  X509NameType {
  X509NameType::SimpleName = 0, X509NameType::EmailName = 1, X509NameType::UpnName = 2, X509NameType::DnsName = 3,
  X509NameType::DnsFromAlternativeName = 4, X509NameType::UrlName = 5
}
 Type of X.509 certificate-contained name which relates to either issuer or subject of the certificate. More...
 

Functions

 DECLARE_ENUM_OPERATORS (System::Security::Cryptography::X509Certificates::X509KeyStorageFlags)
 Declaration of template arithmetic operators for values of X509KeyStorageFlags enum type. More...
 

Enumeration Type Documentation

◆ X500DistinguishedNameFlags

X509 certificate distinguished name formatting rules.

Enumerator
None 

No special characteristics.

Reversed 

Name is reserved.

UseSemicolons 

Use semicolons.

DoNotUsePlusSign 

Name doesn't use plus sign.

DoNotUseQuotes 

Disables quotes in name.

UseCommas 

Enables using commas.

UseNewLines 

Enables using new lines.

UseUTF8Encoding 

Switches from using Unicode to using UTF-8 encoding.

UseT61Encoding 

Switches to T61 encoding.

ForceUTF8Encoding 

Forces using UTF-8 when encoding specific X500 keys.

◆ X509ContentType

Format of X.509 certificate.

Enumerator
Unknown 

Unknown certificate.

Cert 

Single certificate.

SerializedCert 

Serialized single certificate.

Pkcs12 

PKCS #12-formatted certificate.

Pfx 

PFX-formatted certificate.

SerializedStore 

Serialized cerificate store.

Pkcs7 

Serfificated PKCS #7-formatted certificate.

Authenticode 

Authenticode X.509 certificate.

◆ X509IncludeOption

Specifies what certificates in chain to include.

Enumerator
None 

Chain information only.

ExcludeRoot 

Whole chain excluding root certificate.

EndCertOnly 

Whole chain excluding end certificate.

WholeChain 

Whole chain.

◆ X509KeyStorageFlags

Defines how to store key.

Enumerator
DefaultKeySet 

Use default key set.

UserKeySet 

Use user-associated store instead of machine-local one.

MachineKeySet 

Use local machine store instead of user one.

Exportable 

Marks imported keys as exportable.

UserProtected 

Notify user that the key is being used.

PersistKeySet 

The key is persisted when importing certificate.

◆ X509NameType

Type of X.509 certificate-contained name which relates to either issuer or subject of the certificate.

Enumerator
SimpleName 

Simple name of subject or issuer.

EmailName 

Email address.

UpnName 

UPN name.

DnsName 

DNS name.

DnsFromAlternativeName 

Alternative DNS name equivalent to DNS name.

UrlName 

URL.

Function Documentation

◆ DECLARE_ENUM_OPERATORS()

System::Security::Cryptography::X509Certificates::DECLARE_ENUM_OPERATORS ( System::Security::Cryptography::X509Certificates::X509KeyStorageFlags  )

Declaration of template arithmetic operators for values of X509KeyStorageFlags enum type.