SecurityTokenDescriptor 类

定义

这是与已颁发令牌相关的所有属性的占位符。This is a place holder for all the attributes related to the issued token.

public ref class SecurityTokenDescriptor
public class SecurityTokenDescriptor
type SecurityTokenDescriptor = class
Public Class SecurityTokenDescriptor
继承
SecurityTokenDescriptor

构造函数

SecurityTokenDescriptor()

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

属性

AppliesToAddress

获取或设置 RequestSecurityTokenResponse 中 AppliesTo 属性的地址。Gets or sets the address for the AppliesTo property in the RequestSecurityTokenResponse.

AttachedReference

获取或设置当令牌附加到消息时的键标识符子句。Gets or sets the key identifier clause when the token is attached to the message.

AuthenticationInfo

获取或设置标记的身份验证信息。Gets or sets the authentication information for the token.

EncryptingCredentials

获取或设置用于加密令牌的凭据。Gets or sets the credentials that are used to encrypt the token.

Lifetime

获取或设置已颁发令牌的生命周期信息。Gets or sets the lifetime information for the issued token.

Proof

获取或设置已颁发令牌的证明修饰器,其可用于修改 RSTR 内的一些字段,如请求的证明令牌。Gets or sets the proof descriptor for the issued token, which can be used to modify some fields inside the RSTR, such as requested proof token.

Properties

获取颁发的令牌的属性包。Gets the properties bag for the issued token.

ReplyToAddress

获取或设置 RequestSecurityTokenResponse 中 ReplyToAddress 属性的地址。Gets or sets the address for the ReplyToAddress property in the RequestSecurityTokenResponse.

SigningCredentials

获取或设置用于对令牌进行签名的凭据。Gets or sets the credentials that are used to sign the token.

Subject

获取或设置已颁发令牌中包含的输入声明。Gets or sets the output claims to be included in the issued token.

Token

获取或设置已颁发的安全性标记。Gets or sets the issued security token.

TokenIssuerName

获取或设置颁发者名称,其可能还在已颁发令牌中使用。Gets or sets the issuer name, which may be used inside the issued token also.

TokenType

获取或设置已颁发令牌的令牌类型。Gets or sets the token type of the issued token.

UnattachedReference

当消息中没有颁发的令牌时的密钥标识符子句。The key identifier clause when the issued token is not attached to the message.

方法

AddAuthenticationClaims(String)

添加指定的身份验证方法的一个声明到当前实例的主题。Adds a claim for the specified authentication method to the subject of the current instance. 身份验证时刻设置为当前时间。The authentication instant is set to the current time.

AddAuthenticationClaims(String, DateTime)

添加指定的身份验证类型和身份验证时刻的声明到当前实例的主题。Adds claims for the specified authentication type and authentication instant to the subject of the current instance.

ApplyTo(RequestSecurityTokenResponse)

基于当前事例的属性设置指定 RSTR 的相应属性。Sets the appropriate properties of the specified RSTR based on the properties of the current instance.

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

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

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于