Share via


JsonWebKeyConverter.ConvertFromSymmetricSecurityKey Method

Definition

Converts a SymmetricSecurityKey into a JsonWebKey

public static Microsoft.IdentityModel.Tokens.JsonWebKey ConvertFromSymmetricSecurityKey (Microsoft.IdentityModel.Tokens.SymmetricSecurityKey key);
static member ConvertFromSymmetricSecurityKey : Microsoft.IdentityModel.Tokens.SymmetricSecurityKey -> Microsoft.IdentityModel.Tokens.JsonWebKey
Public Shared Function ConvertFromSymmetricSecurityKey (key As SymmetricSecurityKey) As JsonWebKey

Parameters

Returns

a JsonWebKey

Exceptions

if keyis null.

Applies to