Saml2SecurityToken Class
TOC
Collapse the table of content
Expand the table of content

Saml2SecurityToken Class

.NET Framework (current version)
 

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

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

System.Object
  System.IdentityModel.Tokens.SecurityToken
    System.IdentityModel.Tokens.Saml2SecurityToken

public class Saml2SecurityToken : SecurityToken

NameDescription
System_CAPS_pubmethodSaml2SecurityToken(Saml2Assertion)

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

System_CAPS_pubmethodSaml2SecurityToken(Saml2Assertion, ReadOnlyCollection<SecurityKey>, SecurityToken)

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

NameDescription
System_CAPS_pubpropertyAssertion

Gets the SAML assertion for this security token.

System_CAPS_pubpropertyId

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

System_CAPS_pubpropertyIssuerToken

Gets the security token of the issuer.

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_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_pubmethodToString()

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

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.

.NET Framework
Available since 4.5

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:
© 2016 Microsoft