X509Certificate Methods

X509Certificate Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The X509Certificate type exposes the following members.

  NameDescription
Public method Static member CreateFromCertFile Security Critical. Creates an X.509 version 3 certificate from the specified certification file.
Protected method CreateHexString Infrastructure. Creates a hexadecimal string from the specified byte array.
Public method Equals(Object) Compares two X509Certificate objects for equality. (Overrides Object.Equals(Object).)
Public method Equals(X509Certificate) Compares two X509Certificate objects for equality.
Public method Export(X509ContentType) Exports the current X509Certificate object to a byte array in a format described by one of the X509ContentType values.
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.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetCertHash Returns the hash value for the X.509 version 3 certificate as an array of bytes.
Public method GetCertHashString Returns the hash value for the X.509 version 3 certificate as a hexadecimal string.
Public method GetEffectiveDateString Returns the effective date of this X.509 version 3 certificate.
Public method GetExpirationDateString Returns the expiration date of this X.509 version 3 certificate.
Public method GetFormat Returns the name of the format of this X.509 version 3 certificate.
Public method GetHashCode Returns the hash code for the X.509 version 3 certificate as an integer. (Overrides Object.GetHashCode().)
Public method GetKeyAlgorithm Returns the key algorithm information for this X.509 version 3 certificate.
Public method GetKeyAlgorithmParameters Returns the key algorithm parameters for the X.509 version 3 certificate.
Public method GetKeyAlgorithmParametersString Returns the key algorithm parameters for the X.509 version 3 certificate.
Public method GetPublicKey Returns the public key for the X.509 version 3 certificate.
Public method GetPublicKeyString Returns the public key for the X.509 version 3 certificate.
Public method GetRawCertData Returns the raw data for the entire X.509 version 3 certificate.
Public method GetRawCertDataString Returns the raw data for the entire X.509 version 3 certificate.
Public method GetSerialNumber Returns the serial number of the X.509 version 3 certificate.
Public method GetSerialNumberString Returns the serial number of the X.509 version 3 certificate.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Import(Byte[]) Populates the X509Certificate object with data from a byte array.
Public method Import(String) Security Critical. Populates the X509Certificate object with information from a certificate file.
Public method Import(Byte[], String, X509KeyStorageFlags) Populates the X509Certificate object using data from a byte array, a password, and flags for determining how the private key is imported.
Public method Import(String, String, X509KeyStorageFlags) Security Critical. Populates the X509Certificate object with information from a certificate file, a password, and a X509KeyStorageFlags value.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString() Returns a string representation of the current X509Certificate object. (Overrides Object.ToString().)
Public method ToString(Boolean) Returns a string representation of the current X509Certificate object, with extra information, if specified.
Top

Show:
© 2017 Microsoft