SecurityTokenHandlerCollection.CreateToken(SecurityTokenDescriptor) Method

Definition

Creates a token from the specified token descriptor.

C#
public System.IdentityModel.Tokens.SecurityToken CreateToken (System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);

Parameters

tokenDescriptor
SecurityTokenDescriptor

The token descriptor from which the token is to be created. Properties of the token descriptor are set before this method is called.

Returns

A security token that matches the properties of the token descriptor.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1