JwtSecurityTokenConverter.Convert(JsonWebToken) 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.
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.