X509SecurityToken X509SecurityToken X509SecurityToken X509SecurityToken Class

Definition

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

public ref class X509SecurityToken : System::IdentityModel::Tokens::SecurityToken, IDisposable
public class X509SecurityToken : System.IdentityModel.Tokens.SecurityToken, IDisposable
type X509SecurityToken = class
    inherit SecurityToken
    interface IDisposable
Public Class X509SecurityToken
Inherits SecurityToken
Implements IDisposable
Inheritance
X509SecurityTokenX509SecurityTokenX509SecurityTokenX509SecurityToken
Derived
Implements

Remarks

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

Constructors

X509SecurityToken(X509Certificate2) X509SecurityToken(X509Certificate2) X509SecurityToken(X509Certificate2) X509SecurityToken(X509Certificate2)

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

X509SecurityToken(X509Certificate2, String) X509SecurityToken(X509Certificate2, String) X509SecurityToken(X509Certificate2, String) X509SecurityToken(X509Certificate2, String)

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

Properties

Certificate Certificate Certificate Certificate

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

Id Id Id Id

Gets a unique identifier of the security token.

SecurityKeys SecurityKeys SecurityKeys SecurityKeys

Gets the cryptographic keys associated with the security token.

ValidFrom ValidFrom ValidFrom ValidFrom

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

ValidTo ValidTo ValidTo ValidTo

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

Methods

CanCreateKeyIdentifierClause<T>() CanCreateKeyIdentifierClause<T>() CanCreateKeyIdentifierClause<T>() CanCreateKeyIdentifierClause<T>()

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

CreateKeyIdentifierClause<T>() CreateKeyIdentifierClause<T>() CreateKeyIdentifierClause<T>() CreateKeyIdentifierClause<T>()

Creates the specified key identifier clause.

Dispose() Dispose() Dispose() Dispose()

Releases all resources used by the X509SecurityToken.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MatchesKeyIdentifierClause(SecurityKeyIdentifierClause) MatchesKeyIdentifierClause(SecurityKeyIdentifierClause) MatchesKeyIdentifierClause(SecurityKeyIdentifierClause) MatchesKeyIdentifierClause(SecurityKeyIdentifierClause)

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

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ResolveKeyIdentifierClause(SecurityKeyIdentifierClause) ResolveKeyIdentifierClause(SecurityKeyIdentifierClause) ResolveKeyIdentifierClause(SecurityKeyIdentifierClause) ResolveKeyIdentifierClause(SecurityKeyIdentifierClause)

Gets the key for the specified key identifier clause.

(Inherited from SecurityToken)
ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed()

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

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to