X509SecurityToken.Certificate Property


Gets the X.509 certificate associated with the security token.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public X509Certificate2 Certificate { get; }

Property Value

Type: System.Security.Cryptography.X509Certificates.X509Certificate2

An X509Certificate2 that contains the X.509 certificate.

Use the Certificate property to get the details about the X.509 certificate associated with the X509SecurityToken security token. For instance, the thumbprint of the X.509 certificate can be accessed using the Thumbprint property.

.NET Framework
Available since 3.0
Return to top