Freigeben über


Saml2SecurityToken Class

Definition

A security token backed by a SAML2 assertion.

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

Constructors

Saml2SecurityToken(Saml2Assertion)

Initializes an instance of Saml2SecurityToken from a Saml2Assertion.

Properties

Assertion

Gets the Saml2Assertion for this token.

Id

Gets the SecurityToken id.

Issuer

Gets the issuer of this token

SecurityKey

Gets the SecurityKey for this instance.

SigningKey

Gets or sets the SecurityKey that was used to Sign this assertion.

ValidFrom

Gets the time the token is valid from. This value is always in UTC.

ValidTo

Gets the time the token is valid to. This value is always in UTC.

Methods

UnsafeToString()

Returns a string that represents the complete security artifact. This may include sensitive information and should only be used for debugging purposes.

(Inherited from SecurityToken)

Applies to