System.Security.Cryptography.X509Certificates.X509Certificate Members

The members of System.Security.Cryptography.X509Certificates.X509Certificate are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate class.

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate class defined from a sequence of bytes representing an X.509v3 certificate.

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate class using a handle to an unmanaged PCCERT_CONTEXT structure.

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate class using another System.Security.Cryptography.X509Certificates.X509Certificate class.

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate class using the name of a PKCS7 signed file.

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate class using a byte array and a password.

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate class using a byte array and a password.

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate class using a System.Runtime.Serialization.SerializationInfo object and a System.Runtime.Serialization.StreamingContext structure.

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate class using a certificate file name and a password.

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate class using the name of a PKCS7 signed file and a password to access the certificate.

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate class using a byte array, a password, and a key storage flag.

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate class using a byte array, a password, and a key storage flag.

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate class using a certificate file name, a password, and a key storage flag.

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate class using the name of a PKCS7 signed file, a password to access the certificate, and a key storage flag.

Public Properties

[read-only]
HandleIntPtr.

Gets a handle to a Microsoft Cryptographic API certificate context described by an unmanaged PCCERT_CONTEXT structure.

[read-only]
Issuerstring.

Gets the name of the certificate authority that issued the X.509v3 certificate.

[read-only]
Subjectstring.

Gets the subject distinguished name from the certificate.

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.

Explicitly Implemented Interface Members

System.Runtime.Serialization.ISerializable.GetObjectData

Gets serialization information with all the data needed to recreate an instance of the current System.Security.Cryptography.X509Certificates.X509Certificate object.

System.Runtime.Serialization.IDeserializationCallback.OnDeserialization

Implements the System.Runtime.Serialization.ISerializable interface and is called back by the deserialization event when deserialization is complete.