संपादित करें

इसके माध्यम से साझा किया गया


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
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