Editar

Partilhar via


ClientCredentials.GetInfoCardSecurityToken Method

Definition

Generates and returns a security token using the CardSpace system and the specified policy chain and token serializer.

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

Parameters

requiresInfoCard
Boolean

A value that determines whether CardSpace is required.

chain
CardSpacePolicyElement[]

An array of CardSpacePolicyElement that describes the federated security chain that the client requires a final token to unwind.

tokenSerializer
SecurityTokenSerializer

A SecurityTokenSerializer that can read a KeyInfo clause.

Returns

A GenericXmlSecurityToken that represents the generated security token. Returns null if requiresInfoCard is false.

Applies to