SamlSecurityToken 类

定义

表示基于 SAML 断言的安全令牌。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
继承
SamlSecurityToken

注解

SamlSecurityToken 安全令牌的声明表示为 SamlAssertion 的一部分。The claims for SamlSecurityToken security tokens are expressed as part of a SamlAssertion. SamlAssertion 具有一组可扩展的声明,这些声明称为 SAML 语句,由 Statements 属性表示。A SamlAssertion has an extensible set of claims known as SAML statements that are represented by the Statements property. 颁发 SAML 断言的 SAML 授权机构在 Issuer 属性中指定。The SAML authority that issued the SAML assertion is specified in the Issuer property.

构造函数

SamlSecurityToken()

初始化 SamlSecurityToken 类的新实例。Initializes a new instance of the SamlSecurityToken class.

SamlSecurityToken(SamlAssertion)

使用指定的 SAML 断言初始化 SamlSecurityToken 类的新实例。Initializes a new instance of the SamlSecurityToken class using the specified SAML assertion.

属性

Assertion

获取此安全令牌的 SAML 断言。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.

方法

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.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
Initialize(SamlAssertion)

使用指定的 SAML 断言初始化 SamlSecurityToken 类的属性。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()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ResolveKeyIdentifierClause(SecurityKeyIdentifierClause)

为指定的密钥标识符子句获取密钥。Gets the key for the specified key identifier clause.

(继承自 SecurityToken)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅