X509Certificate Class

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

Provides methods that help you use X.509 v.3 certificates.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class X509Certificate
public class X509Certificate
public ref class X509Certificate
type X509Certificate =  class end
public class X509Certificate

The X509Certificate type exposes the following members.

Constructors

  Name Description
Public method X509Certificate() () () () Initializes a new instance of the X509Certificate class.
Public method X509Certificate(array<Byte> [] () [] []) Initializes a new instance of the X509Certificate class defined from a sequence of bytes representing an X.509v3 certificate.
Public method X509Certificate(array<Byte> [] () [] [], String) Initializes a new instance of the X509Certificate class using a byte array and a password.

Top

Properties

  Name Description
Public property Issuer Gets the name of the certificate authority that issued the X.509v3 certificate.
Public property Subject Gets the subject distinguished name from the certificate.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEffectiveDate Retrieves the effective date of the certificate.
Public method GetExpirationDate Retrieves the expiration date of the certificate.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetRawCertData Returns the raw data for the entire X.509v3 certificate.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Protected field m_effectiveDate Contains the effective date of the certificate.
Protected field m_expirationDate Contains the expiration date of the certificate.
Protected field m_handle Contains the handle.
Protected field m_issuer Contains the certificate issuer.
Protected field m_sessionHandle Contains the session handle.
Protected field m_subject Contains the subject.

Top

Remarks

ASN.1 DER is the only certificate format supported by this class.

For most scenarios, you should use the X509Certificate2 class instead.

Thread Safety

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

See Also

Reference

System.Security.Cryptography.X509Certificates Namespace