System.Security.Cryptography.X509Certificates.X509Certificate: Method Members

The methods of System.Security.Cryptography.X509Certificates.X509Certificate are listed below. For a list of all members, see the X509Certificate Members list.

See Also: Inherited members from System.Object

Public Methods

static
CreateFromCertFile(string) : System.Security.Cryptography.X509Certificates.X509Certificate

Creates an X.509v3 certificate from the specified PKCS7 signed file.

static
CreateFromSignedFile(string) : System.Security.Cryptography.X509Certificates.X509Certificate

Creates an X.509v3 certificate from the specified signed file.

override
Equals(object) : bool

Compares two System.Security.Cryptography.X509Certificates.X509Certificate objects for equality.

Equals(System.Security.Cryptography.X509Certificates.X509Certificate) : bool

Compares two System.Security.Cryptography.X509Certificates.X509Certificate objects for equality.

Export(System.Security.Cryptography.X509Certificates.X509ContentType) : byte[]

Exports the current System.Security.Cryptography.X509Certificates.X509Certificate object to a byte array in a format described by one of the System.Security.Cryptography.X509Certificates.X509ContentType values.

Export(System.Security.Cryptography.X509Certificates.X509ContentType, System.Security.SecureString) : byte[]

Exports the current System.Security.Cryptography.X509Certificates.X509Certificate object to a byte array using the specified format and a password.

Export(System.Security.Cryptography.X509Certificates.X509ContentType, string) : byte[]

Exports the current System.Security.Cryptography.X509Certificates.X509Certificate object to a byte array in a format described by one of the System.Security.Cryptography.X509Certificates.X509ContentType values, and using the specified password.

GetCertHash() : byte[]

Returns the hash value for the X.509v3 certificate as an array of bytes.

GetCertHashString() : string

Returns the SHA1 hash value for the X.509v3 certificate as a hexadecimal string.

GetEffectiveDateString() : string

Returns the effective date of this X.509v3 certificate.

GetExpirationDateString() : string

Returns the expiration date of this X.509v3 certificate.

GetFormat() : string

Returns the name of the format of this X.509v3 certificate.

override
GetHashCode() : int

Returns the hash code for the X.509v3 certificate as an integer.

GetIssuerName() : string

Returns the name of the certification authority that issued the X.509v3 certificate.

GetKeyAlgorithm() : string

Returns the key algorithm information for this X.509v3 certificate as a string.

GetKeyAlgorithmParameters() : byte[]

Returns the key algorithm parameters for the X.509v3 certificate as an array of bytes.

GetKeyAlgorithmParametersString() : string

Returns the key algorithm parameters for the X.509v3 certificate as a hexadecimal string.

GetName() : string

Returns the name of the principal to which the certificate was issued.

GetPublicKey() : byte[]

Returns the public key for the X.509v3 certificate as an array of bytes.

GetPublicKeyString() : string

Returns the public key for the X.509v3 certificate as a hexadecimal string.

GetRawCertData() : byte[]

Returns the raw data for the entire X.509v3 certificate as an array of bytes.

GetRawCertDataString() : string

Returns the raw data for the entire X.509v3 certificate as a hexadecimal string.

GetSerialNumber() : byte[]

Returns the serial number of the X.509v3 certificate as an array of bytes.

GetSerialNumberString() : string

Returns the serial number of the X.509v3 certificate as a hexadecimal string.

Import(byte[])

Populates the System.Security.Cryptography.X509Certificates.X509Certificate object with data from a byte array.

Import(string)

Populates the System.Security.Cryptography.X509Certificates.X509Certificate object with information from a certificate file.

Import(byte[], System.Security.SecureString, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags)

Populates an System.Security.Cryptography.X509Certificates.X509Certificate object using data from a byte array, a password, and a key storage flag.

Import(byte[], string, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags)

Populates the System.Security.Cryptography.X509Certificates.X509Certificate object using data from a byte array, a password, and flags for determining how the private key is imported.

Import(string, System.Security.SecureString, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags)

Populates an System.Security.Cryptography.X509Certificates.X509Certificate object with information from a certificate file, a password, and a key storage flag.

Import(string, string, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags)

Populates the System.Security.Cryptography.X509Certificates.X509Certificate object with information from a certificate file, a password, and a System.Security.Cryptography.X509Certificates.X509KeyStorageFlags value.

Reset()

Resets the state of the System.Security.Cryptography.X509Certificates.X509Certificate2 object.

override
ToString() : string

Returns a string representation of the current System.Security.Cryptography.X509Certificates.X509Certificate object.

ToString(bool) : string

Returns a string representation of the current System.Security.Cryptography.X509Certificates.X509Certificate object, with extra information, if specified.

Protected Methods

static
FormatDate(DateTime) : string

Converts the specified date and time to a string.