Share via


JwtSecurityTokenConverter.Convert(JsonWebToken) Method

Definition

Initializes a new instance of a JwtSecurityToken from a JsonWebToken

public static System.IdentityModel.Tokens.Jwt.JwtSecurityToken Convert (Microsoft.IdentityModel.JsonWebTokens.JsonWebToken token);
static member Convert : Microsoft.IdentityModel.JsonWebTokens.JsonWebToken -> System.IdentityModel.Tokens.Jwt.JwtSecurityToken
Public Shared Function Convert (token As JsonWebToken) As JwtSecurityToken

Parameters

token
JsonWebToken

A JSON Web Token to convert from.

Returns

Exceptions

token is null

token doesn't have EncodedToken set.

Applies to