X509SecurityToken Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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


public class X509SecurityToken : SecurityToken, IDisposable

NameDescription
System_CAPS_pubmethodX509SecurityToken(X509Certificate2)

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

System_CAPS_pubmethodX509SecurityToken(X509Certificate2, String)

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

NameDescription
System_CAPS_pubpropertyCertificate

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

System_CAPS_pubpropertyId

Gets a unique identifier of the security token.(Overrides SecurityToken.Id.)

System_CAPS_pubpropertySecurityKeys

Gets the cryptographic keys associated with the security token.(Overrides SecurityToken.SecurityKeys.)

System_CAPS_pubpropertyValidFrom

Gets the first instant in time at which this security token is valid.(Overrides SecurityToken.ValidFrom.)

System_CAPS_pubpropertyValidTo

Gets the last instant in time at which this security token is valid.(Overrides SecurityToken.ValidTo.)

NameDescription
System_CAPS_pubmethodCanCreateKeyIdentifierClause<T>()

Gets a value indicating whether this security token is capable of creating the specified key identifier.(Overrides SecurityToken.CanCreateKeyIdentifierClause<T>().)

System_CAPS_pubmethodCreateKeyIdentifierClause<T>()

Creates the specified key identifier clause.(Overrides SecurityToken.CreateKeyIdentifierClause<T>().)

System_CAPS_pubmethodDispose()

Releases all resources used by the X509SecurityToken.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodMatchesKeyIdentifierClause(SecurityKeyIdentifierClause)

Returns a value indicating whether the key identifier for this instance is equal to the specified key identifier.(Overrides SecurityToken.MatchesKeyIdentifierClause(SecurityKeyIdentifierClause).)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodResolveKeyIdentifierClause(SecurityKeyIdentifierClause)

Gets the key for the specified key identifier clause.(Inherited from SecurityToken.)

System_CAPS_protmethodThrowIfDisposed()

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

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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

.NET Framework
Available since 3.0

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

Return to top
Show: