ClientCredentials.GetInfoCardSecurityToken 方法

定义

使用 CardSpace 系统以及指定的策略链和令牌序列化程序生成并返回安全令牌。

protected public:
 virtual System::IdentityModel::Tokens::SecurityToken ^ GetInfoCardSecurityToken(bool requiresInfoCard, cli::array <System::IdentityModel::Selectors::CardSpacePolicyElement ^> ^ chain, System::IdentityModel::Selectors::SecurityTokenSerializer ^ tokenSerializer);
protected internal virtual System.IdentityModel.Tokens.SecurityToken GetInfoCardSecurityToken (bool requiresInfoCard, System.IdentityModel.Selectors.CardSpacePolicyElement[] chain, System.IdentityModel.Selectors.SecurityTokenSerializer tokenSerializer);
abstract member GetInfoCardSecurityToken : bool * System.IdentityModel.Selectors.CardSpacePolicyElement[] * System.IdentityModel.Selectors.SecurityTokenSerializer -> System.IdentityModel.Tokens.SecurityToken
override this.GetInfoCardSecurityToken : bool * System.IdentityModel.Selectors.CardSpacePolicyElement[] * System.IdentityModel.Selectors.SecurityTokenSerializer -> System.IdentityModel.Tokens.SecurityToken
Protected Friend Overridable Function GetInfoCardSecurityToken (requiresInfoCard As Boolean, chain As CardSpacePolicyElement(), tokenSerializer As SecurityTokenSerializer) As SecurityToken

参数

requiresInfoCard
Boolean

一个值,该值确定是否需要 CardSpace。

chain
CardSpacePolicyElement[]

CardSpacePolicyElement 的数组,它描述了客户端需要使用最终令牌才能展开的联合安全链。

tokenSerializer
SecurityTokenSerializer

一个 SecurityTokenSerializer,它能够读取 KeyInfo 子句。

返回

表示所生成的安全令牌的 GenericXmlSecurityToken。 如果 nullrequiresInfoCard,则返回 false

适用于