System::Security::Cryptography::X509Certificates::X509Certificate class

X509Certificate class

X.509 v.3 certificate. Encrypted certificates are not supported. Only X509KeyStorageFlags::DefaultKeySet flag is supported. 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.

class X509Certificate : public virtual System::Object,
                        public System::IDisposable

Methods

MethodDescription
static CreateFromCertFile(const String&)Creates sertificate from the specified PKCS7 file.
static CreateFromSignedFile(const String&)Creates sertificate from the specified signed file.
Dispose() overrideDoes nothing.
Equals(SharedPtr<Object>) overrideCompares two certificates.
virtual Export(X509ContentType) constExports the current object to a byte array using the specified format. NOT IMPLEMENTED.
virtual Export(X509ContentType, const SecureStringPtr&) constExports the current object to a byte array using the specified format. NOT IMPLEMENTED.
virtual Export(X509ContentType, const String&) constExports the current object to a byte array using the specified format. NOT IMPLEMENTED.
get_Handle() constGets a handle to Microsoft Cryptographic API certificate context.
get_Issuer() constGets name of the certificate authority that issued the X.509v3 certificate.
get_Subject() constGets subject distinguished name from certificate.
virtual GetCertHash() constGets hash for the current object as an array of bytes.
virtual GetCertHash(const HashAlgorithmName&) constGets hash for the current object as an array of bytes.
virtual GetCertHashString() constGets SHA1 hash for the current object as a hexadecimal string.
virtual GetCertHashString(const HashAlgorithmName&) constGets SHA1 hash for the current object as a hexadecimal string.
virtual GetEffectiveDateString() constGets effective date of the current sertificate.
virtual GetExpirationDateString() constGets expiration date of the current sertificate.
virtual GetFormat() constGets name of the certificate format.
GetHashCode() const overrideGets certificate hash code.
virtual GetIssuerName() constGets name of the certification authority that issued the current certificate.
virtual GetKeyAlgorithm() constGets key information for the current certificate as a string.
virtual GetKeyAlgorithmParameters() constGets key information for the current certificate as an array of bytes.
virtual GetKeyAlgorithmParametersString() constGets key information for the current certificate as a hexadecimal string.
virtual GetName() constGets name of the principal to witch the current sertificate was issued.
virtual GetPublicKey() constGets public key from certificate as array of bytes.
virtual GetPublicKeyString() constGets public key from certificate as a hexadecimal string.
virtual GetRawCertData() constGets raw data from certificate as array of bytes.
virtual GetRawCertDataString() constGets raw data from certificate as a hexadecimal string.
virtual GetSerialNumber() constGets serial number from certificate as array of bytes.
virtual GetSerialNumberString() constGets serial number from certificate as a hexadecimal string.
virtual Import(const String&, const SecureStringPtr&, X509KeyStorageFlags)Imports information from the specified certificate file. NOT IMPLEMENTED.
virtual Import(const String&, const String&, X509KeyStorageFlags)Imports information from the specified certificate file. NOT IMPLEMENTED.
virtual Import(const ByteArrayPtr&, const SecureStringPtr&, X509KeyStorageFlags)Imports information from the specified certificate data. NOT IMPLEMENTED.
virtual Import(const ByteArrayPtr&, const String&, X509KeyStorageFlags)Imports information from the specified certificate data. NOT IMPLEMENTED.
virtual Import(const String&)Imports information from the specified certificate file. NOT IMPLEMENTED.
virtual Import(const ByteArrayPtr&)Imports information from the specified certificate data. NOT IMPLEMENTED.
operator=(const X509Certificate&)
virtual Reset()Resets the certificate state.
virtual ToString(bool) constReturns the certificate information in text format.
ToString() const overrideReturns the certificate information in text format.
X509Certificate(const X509Certificate&)
X509Certificate()Constructor.
X509Certificate(const ByteArrayPtr&)Constructor.
X509Certificate(const String&)Constructor.
X509Certificate(const SharedPtr<X509Certificate>&)Constructor.
X509Certificate(const ByteArrayPtr&, const String&)Constructor.
X509Certificate(const ByteArrayPtr&, const SecureStringPtr&)Constructor.
X509Certificate(const String&, const String&)Constructor.
X509Certificate(const String&, const SecureStringPtr&)Constructor.
X509Certificate(const ByteArrayPtr&, const String&, X509KeyStorageFlags)Constructor.
X509Certificate(const ByteArrayPtr&, const SecureStringPtr&, X509KeyStorageFlags)Constructor.
X509Certificate(const String&, const String&, X509KeyStorageFlags)Constructor.
X509Certificate(const String&, const SecureStringPtr&, X509KeyStorageFlags)Constructor.
X509Certificate(const ByteArrayPtr&, const ByteArrayPtr&, X509KeyStorageFlags)Constructor.

Typedefs

TypedefDescription
PtrPointer type.

See Also