ClientCredentials.GetInfoCardSecurityToken Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.