SamlSecurityToken Class

Definition

Represents a security token that is based upon a SAML assertion.

public class SamlSecurityToken : System.IdentityModel.Tokens.SecurityToken
Inheritance
SamlSecurityToken

Remarks

The claims for SamlSecurityToken security tokens are expressed as part of a SamlAssertion. A SamlAssertion has an extensible set of claims known as SAML statements that are represented by the Statements property. The SAML authority that issued the SAML assertion is specified in the Issuer property.

Constructors

SamlSecurityToken()

Initializes a new instance of the SamlSecurityToken class.

SamlSecurityToken(SamlAssertion)

Initializes a new instance of the SamlSecurityToken class using the specified SAML assertion.

Properties

Assertion

Gets the SAML assertion for this 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.

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)
Initialize(SamlAssertion)

Initializes the properties of the SamlSecurityToken class using the specified SAML assertion.

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)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Proizvod Verzije
.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, 4.7.1, 4.7.2, 4.8, 4.8.1

See also