Export (0) Print
Expand All

X509Certificate2 Methods

The X509Certificate2 type exposes the following members.

  Name Description
Public method Dispose() Releases all resources used by the current X509Certificate object. (Inherited from X509Certificate.)
Protected method Dispose(Boolean) Releases all of the unmanaged resources used by this X509Certificate and optionally releases the managed resources. (Inherited from X509Certificate.)
Public method Equals(Object) Compares two X509Certificate objects for equality. (Inherited from X509Certificate.)
Public method Equals(X509Certificate) Compares two X509Certificate objects for equality. (Inherited from X509Certificate.)
Public method Export(X509ContentType) Exports the current X509Certificate object to a byte array in a format described by one of the X509ContentType values. (Inherited from X509Certificate.)
Public method Export(X509ContentType, SecureString) Exports the current X509Certificate object to a byte array using the specified format and a password. (Inherited from X509Certificate.)
Public method Export(X509ContentType, String) Exports the current X509Certificate object to a byte array in a format described by one of the X509ContentType values, and using the specified password. (Inherited from X509Certificate.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member GetCertContentType(Byte[]) Indicates the type of certificate contained in a byte array.
Public method Static member GetCertContentType(String) Indicates the type of certificate contained in a file.
Public method GetCertHash Returns the hash value for the X.509v3 certificate as an array of bytes. (Inherited from X509Certificate.)
Public method GetCertHashString Returns the SHA1 hash value for the X.509v3 certificate as a hexadecimal string. (Inherited from X509Certificate.)
Public method GetEffectiveDateString Returns the effective date of this X.509v3 certificate. (Inherited from X509Certificate.)
Public method GetExpirationDateString Returns the expiration date of this X.509v3 certificate. (Inherited from X509Certificate.)
Public method GetFormat Returns the name of the format of this X.509v3 certificate. (Inherited from X509Certificate.)
Public method GetHashCode Returns the hash code for the X.509v3 certificate as an integer. (Inherited from X509Certificate.)
Public method GetIssuerName Obsolete. Returns the name of the certification authority that issued the X.509v3 certificate. (Inherited from X509Certificate.)
Public method GetKeyAlgorithm Returns the key algorithm information for this X.509v3 certificate as a string. (Inherited from X509Certificate.)
Public method GetKeyAlgorithmParameters Returns the key algorithm parameters for the X.509v3 certificate as an array of bytes. (Inherited from X509Certificate.)
Public method GetKeyAlgorithmParametersString Returns the key algorithm parameters for the X.509v3 certificate as a hexadecimal string. (Inherited from X509Certificate.)
Public method GetName Obsolete. Returns the name of the principal to which the certificate was issued. (Inherited from X509Certificate.)
Public method GetNameInfo Gets the subject and issuer names from a certificate.
Public method GetPublicKey Returns the public key for the X.509v3 certificate as an array of bytes. (Inherited from X509Certificate.)
Public method GetPublicKeyString Returns the public key for the X.509v3 certificate as a hexadecimal string. (Inherited from X509Certificate.)
Public method GetRawCertData Returns the raw data for the entire X.509v3 certificate as an array of bytes. (Inherited from X509Certificate.)
Public method GetRawCertDataString Returns the raw data for the entire X.509v3 certificate as a hexadecimal string. (Inherited from X509Certificate.)
Public method GetSerialNumber Returns the serial number of the X.509v3 certificate as an array of bytes. (Inherited from X509Certificate.)
Public method GetSerialNumberString Returns the serial number of the X.509v3 certificate as a hexadecimal string. (Inherited from X509Certificate.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Import(Byte[]) Populates an X509Certificate2 object with data from a byte array. (Overrides X509Certificate.Import(Byte[]).)
Public method Import(String) Populates an X509Certificate2 object with information from a certificate file. (Overrides X509Certificate.Import(String).)
Public method Import(Byte[], SecureString, X509KeyStorageFlags) Populates an X509Certificate2 object using data from a byte array, a password, and a key storage flag. (Overrides X509Certificate.Import(Byte[], SecureString, X509KeyStorageFlags).)
Public method Import(Byte[], String, X509KeyStorageFlags) Populates an X509Certificate2 object using data from a byte array, a password, and flags for determining how to import the private key. (Overrides X509Certificate.Import(Byte[], String, X509KeyStorageFlags).)
Public method Import(String, SecureString, X509KeyStorageFlags) Populates an X509Certificate2 object with information from a certificate file, a password, and a key storage flag. (Overrides X509Certificate.Import(String, SecureString, X509KeyStorageFlags).)
Public method Import(String, String, X509KeyStorageFlags) Populates an X509Certificate2 object with information from a certificate file, a password, and a X509KeyStorageFlags value. (Overrides X509Certificate.Import(String, String, X509KeyStorageFlags).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Reset Resets the state of an X509Certificate2 object. (Overrides X509Certificate.Reset().)
Public method ToString() Displays an X.509 certificate in text format. (Overrides X509Certificate.ToString().)
Public method ToString(Boolean) Displays an X.509 certificate in text format. (Overrides X509Certificate.ToString(Boolean).)
Public method Verify Performs a X.509 chain validation using basic validation policy.
Top

  Name Description
Public Extension Method GetCngPrivateKey Returns a CngKey object that represents the private key of an X.509 certificate that has its private key stored with NCrypt rather than with CAPI. [This documentation is preliminary and is subject to change in the next release of the .NET Framework 4.6.]
(Defined by X509CertificateExtensions.)
Public Extension Method GetCngPublicKey Returns a CngKey object that represents the public key of an X.509 certificate. [This documentation is preliminary and is subject to change in the next release of the .NET Framework 4.6.]
(Defined by X509CertificateExtensions.)
Public Extension Method HasCngKey Indicates whether the X509Certificate references a key stored with NCrypt in CNG. [This documentation is preliminary and is subject to change in the next release of the .NET Framework 4.6.]
(Defined by X509CertificateExtensions.)
Top

  Name Description
Explicit interface implemetation Private method IDeserializationCallback.OnDeserialization Implements the ISerializable interface and is called back by the deserialization event when deserialization is complete. (Inherited from X509Certificate.)
Explicit interface implemetation Private method ISerializable.GetObjectData Gets serialization information with all the data needed to recreate an instance of the current X509Certificate object. (Inherited from X509Certificate.)
Top
Show:
© 2015 Microsoft