Redigera

Dela via


SamlSecurityToken Class

Definition

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

See also