Share via


TestTokenCreator.CreateToken Method

Definition

Overloads

CreateToken(SecurityTokenDescriptor)

Creates a token based on the passed SecurityTokenDescriptor.

CreateToken(Dictionary<String,Object>)

Creates a token based on the passed Dictionary<TKey,TValue>.

CreateToken(SecurityTokenDescriptor)

Creates a token based on the passed SecurityTokenDescriptor.

public static string CreateToken (Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor securityTokenDescriptor);
static member CreateToken : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> string
Public Shared Function CreateToken (securityTokenDescriptor As SecurityTokenDescriptor) As String

Parameters

securityTokenDescriptor
SecurityTokenDescriptor

The SecurityTokenDescriptor which describes the token to create.

Returns

A JWS token described by the passed SecurityTokenDescriptor.

Applies to

CreateToken(Dictionary<String,Object>)

Creates a token based on the passed Dictionary<TKey,TValue>.

public string CreateToken (System.Collections.Generic.Dictionary<string,object> claims);
member this.CreateToken : System.Collections.Generic.Dictionary<string, obj> -> string
Public Function CreateToken (claims As Dictionary(Of String, Object)) As String

Parameters

claims
Dictionary<String,Object>

The Dictionary<TKey,TValue> of claims which describe the token to create.

Returns

A JWS token described by the passed Dictionary<TKey,TValue>.

Applies to