System.Security.Cryptography.X509Certificates.X509Certificate2 Members

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

See Also: Inherited members from System.Security.Cryptography.X509Certificates.X509Certificate

Public Constructors

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

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate2 class using information from a byte array.

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate2 class using an unmanaged handle.

Initializes a new instance of the System.Security.Cryptography.X509Certificates.X509Certificate2 class using an System.Security.Cryptography.X509Certificates.X509Certificate object.

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

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

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

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

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

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

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

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

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

Public Properties

Archivedbool.

Gets or sets a value indicating that an X.509 certificate is archived.

[read-only]
ExtensionsX509ExtensionCollection.

Gets a collection of System.Security.Cryptography.X509Certificates.X509Extension objects.

FriendlyNamestring.

Gets or sets the associated alias for a certificate.

[read-only]
HasPrivateKeybool.

Gets a value that indicates whether an System.Security.Cryptography.X509Certificates.X509Certificate2 object contains a private key.

[read-only]
IssuerNameX500DistinguishedName.

Gets the distinguished name of the certificate issuer.

[read-only]
NotAfterDateTime.

Gets the date in local time after which a certificate is no longer valid.

[read-only]
NotBeforeDateTime.

Gets the date in local time on which a certificate becomes valid.

PrivateKeySystem.Security.Cryptography.AsymmetricAlgorithm.

Gets or sets the System.Security.Cryptography.AsymmetricAlgorithm object that represents the private key associated with a certificate.

[read-only]
PublicKeyPublicKey.

Gets a X509Certificate2.PublicKey object associated with a certificate.

[read-only]
RawDatabyte[].

Gets the raw data of a certificate.

[read-only]
SerialNumberstring.

Gets the serial number of a certificate.

[read-only]
SignatureAlgorithmSystem.Security.Cryptography.Oid.

Gets the algorithm used to create the signature of a certificate.

[read-only]
SubjectNameX500DistinguishedName.

Gets the subject distinguished name from a certificate.

[read-only]
Thumbprintstring.

Gets the thumbprint of a certificate.

[read-only]
Versionint.

Gets the X.509 format version of a certificate.

Public Methods

static
GetCertContentType(byte[]) : X509ContentType

Indicates the type of certificate contained in a byte array.

static
GetCertContentType(string) : X509ContentType

Indicates the type of certificate contained in a file.

GetNameInfo(X509NameType, bool) : string

Gets the subject and issuer names from a certificate.

override
Import(byte[])

Populates an System.Security.Cryptography.X509Certificates.X509Certificate2 object with data from a byte array.

override
Import(string)

Populates an System.Security.Cryptography.X509Certificates.X509Certificate2 object with information from a certificate file.

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

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

override
Import(byte[], string, X509KeyStorageFlags)

Populates an System.Security.Cryptography.X509Certificates.X509Certificate2 object using data from a byte array, a password, and flags for determining how to import the private key.

override
Import(string, System.Security.SecureString, X509KeyStorageFlags)

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

override
Import(string, string, X509KeyStorageFlags)

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

override
Reset()

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

override
ToString() : string

Displays an X.509 certificate in text format.

override
ToString(bool) : string

Displays an X.509 certificate in text format.

Verify() : bool

Performs a X.509 chain validation using basic validation policy.