X509Certificate2 Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents an X.509 certificate.

System..::..Object
  System.Security.Cryptography.X509Certificates..::..X509Certificate
    System.Security.Cryptography.X509Certificates..::..X509Certificate2

Namespace:  System.Security.Cryptography.X509Certificates
Assembly:  System.Security (in System.Security.dll)

public class X509Certificate2 : X509Certificate

The X509Certificate2 type exposes the following members.

  NameDescription
Public methodX509Certificate2(Session, array<CryptokiAttribute>[]()[][])Initializes a new instance of the X509Certificate2 class with the specified session and template.
Public methodX509Certificate2(Session, array<Byte>[]()[][], String)Initializes a new instance of the X509Certificate2 class with specified session, data and password.
Top

  NameDescription
Public propertyHasPrivateKeyGets a value that indicates whether an X509Certificate2 object contains a private key.
Public propertyIssuerGets the name of the certificate authority that issued the X.509v3 certificate. (Overrides X509Certificate..::..Issuer.)
Public propertyKeyTypeGets the KeyType (RSA, DSA, etc.) associated with a certificate.
Public propertyNotAfterGets the date in local time after which a certificate is no longer valid.
Public propertyNotBeforeGets the date in local time on which a certificate becomes valid.
Public propertyPrivateKeyGets or sets the AsymmetricAlgorithm object that represents the private key associated with a certificate.
Public propertyPublicKeyGets a PublicKey object associated with a certificate.
Public propertyRawDataGets the raw data of a certificate.
Public propertySerialNumberGets the serial number of a certificate.
Public propertySignatureAlgorithmGets the algorithm used to create the signature of a certificate.
Public propertySubjectGets the subject distinguished name from the certificate. (Overrides X509Certificate..::..Subject.)
Public propertyThumbprintGets the thumbprint of a certificate.
Top

  NameDescription
Protected methodCreateHexStringCreates a hexamdecimal string.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodEquals(X509Certificate2)Compares two X509Certificate2 objects for equality.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetCertHashReturns the hash value for the X.509v3 certificate as an array of bytes.
Public methodGetCertHashStringReturns the SHA1 hash value for the X.509v3 certificate as a hexadecimal string.
Public methodGetEffectiveDateRetrieves the effective date of the certificate. (Inherited from X509Certificate.)
Public methodGetEffectiveDateStringReturns the effective date of this X.509v3 certificate.
Public methodGetExpirationDateRetrieves the expiration date of the certificate. (Inherited from X509Certificate.)
Public methodGetExpirationDateStringReturns the expiration date of this X.509v3 certificate.
Public methodGetHashCodeReturns the hash code for the X.509v3 certificate as an integer. (Overrides Object..::..GetHashCode()()()().)
Public methodGetRawCertDataReturns the raw data for the entire X.509v3 certificate. (Overrides X509Certificate..::..GetRawCertData()()()().)
Public methodGetSerialNumberReturns the serial number of the X.509v3 certificate.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToString()()()()Displays an X.509 certificate in text format. (Overrides Object..::..ToString()()()().)
Public methodToString(Boolean)Displays an X.509 certificate in text format.
Public methodVerifyPerforms a X.509 chain validation using basic validation policy.
Top

  NameDescription
Protected fieldm_effectiveDateContains the effective date of the certificate. (Inherited from X509Certificate.)
Protected fieldm_expirationDateContains the expiration date of the certificate. (Inherited from X509Certificate.)
Protected fieldm_handleContains the handle. (Inherited from X509Certificate.)
Protected fieldm_issuerContains the certificate issuer. (Inherited from X509Certificate.)
Protected fieldm_sessionHandleContains the session handle. (Inherited from X509Certificate.)
Protected fieldm_subjectContains the subject. (Inherited from X509Certificate.)
Top

The X.509 structure originated in the International Organization for Standardization (ISO) working groups. This structure can be used to represent various types of information including identity, entitlement, and holder attributes (permissions, age, sex, location, affiliation, and so forth). Although the ISO specifications are most informative on the structure itself, the X509Certificate2 class is designed to model the usage scenarios defined in specifications issued by the Internet Engineering Task Force (IETF) Public Key Infrastructure, X.509 (PKIX) working group. The most informative of these specifications is RFC 3280, "Certificate and Certificate Revocation List (CRL) Profile."

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: