Lire en anglais Modifier

Partager via


X509SecurityToken Class

Definition

Represents a security token that is based upon an X.509 certificate.

public class X509SecurityToken : System.IdentityModel.Tokens.SecurityToken, IDisposable
Inheritance
X509SecurityToken
Derived
Implements

Remarks

To get the details of the X.509 certificate, access the Certificate property.

Constructors

X509SecurityToken(X509Certificate2, String)

Initializes a new instance of the X509SecurityToken class using the specified X.509 certificate and unique identifier.

X509SecurityToken(X509Certificate2)

Initializes a new instance of the X509SecurityToken class using the specified X.509 certificate.

Properties

Certificate

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

Id

Gets a unique identifier of the security token.

SecurityKeys

Gets the cryptographic keys associated with the security token.

ValidFrom

Gets the first instant in time at which this security token is valid.

ValidTo

Gets the last instant in time at which this security token is valid.

Methods

CanCreateKeyIdentifierClause<T>()

Gets a value indicating whether this security token is capable of creating the specified key identifier.

CreateKeyIdentifierClause<T>()

Creates the specified key identifier clause.

Dispose()

Releases all resources used by the X509SecurityToken.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MatchesKeyIdentifierClause(SecurityKeyIdentifierClause)

Returns a value indicating whether the key identifier for this instance is equal to the specified key identifier.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ResolveKeyIdentifierClause(SecurityKeyIdentifierClause)

Gets the key for the specified key identifier clause.

(Inherited from SecurityToken)
ThrowIfDisposed()

Throws an exception if the ThrowIfDisposed() method has been called for this instance.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Produit Versions
.NET 8 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)