Muokkaa

Jaa


Saml2SecurityTokenHandler.CreateToken(SecurityTokenDescriptor) Method

Definition

Creates a security token based on a token descriptor.

public:
 override System::IdentityModel::Tokens::SecurityToken ^ CreateToken(System::IdentityModel::Tokens::SecurityTokenDescriptor ^ tokenDescriptor);
public override System.IdentityModel.Tokens.SecurityToken CreateToken (System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
override this.CreateToken : System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.SecurityToken
Public Overrides Function CreateToken (tokenDescriptor As SecurityTokenDescriptor) As SecurityToken

Parameters

tokenDescriptor
SecurityTokenDescriptor

The token descriptor from which to create the security token.

Returns

A SecurityToken that represents the SAML 2.0 security token. (The token returned is actually an instance of Saml2SecurityToken.)

Exceptions

tokenDescriptor is null.

Applies to