Redigeeri

Jagamisviis:


Saml2SecurityToken Class

Definition

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

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

Remarks

The claims for Saml2SecurityToken security tokens are expressed as part of a Saml2Assertion. A Saml2Assertion 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

Saml2SecurityToken(Saml2Assertion, ReadOnlyCollection<SecurityKey>, SecurityToken)

Initializes a new instance of the Saml2SecurityToken class using the specified SAML assertion, cryptographic keys and issuer token.

Saml2SecurityToken(Saml2Assertion)

Initializes a new instance of the Saml2SecurityToken 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.

IssuerToken

Gets the security token of the issuer.

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