共用方式為


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

可以讀取 KeyInfo 子句的 SecurityTokenSerializer

傳回

GenericXmlSecurityToken,表示所產生的安全性權杖。 如果 nullrequiresInfoCard,則傳回 false

適用於