SamlSecurityToken SamlSecurityToken SamlSecurityToken SamlSecurityToken Class


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

public ref class SamlSecurityToken : System::IdentityModel::Tokens::SecurityToken
public class SamlSecurityToken : System.IdentityModel.Tokens.SecurityToken
type SamlSecurityToken = class
    inherit SecurityToken
Public Class SamlSecurityToken
Inherits SecurityToken


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.


SamlSecurityToken() SamlSecurityToken() SamlSecurityToken() SamlSecurityToken()

Initializes a new instance of the SamlSecurityToken class.

SamlSecurityToken(SamlAssertion) SamlSecurityToken(SamlAssertion) SamlSecurityToken(SamlAssertion) SamlSecurityToken(SamlAssertion)

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


Assertion Assertion Assertion Assertion

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


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.

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

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

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

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also