Partager via


SamlSecurityToken Class

Definition

A security token backed by a SAML assertion.

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

Constructors

SamlSecurityToken()

Initializes an instance of SamlSecurityToken.

SamlSecurityToken(SamlAssertion)

Initializes an instance of SamlSecurityToken.

Properties

Assertion

Gets the SamlAssertion 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