JsonWebKeyConverter.ConvertFromSecurityKey(SecurityKey) 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.
Converts a SecurityKey into a JsonWebKey
public static Microsoft.IdentityModel.Tokens.JsonWebKey ConvertFromSecurityKey (Microsoft.IdentityModel.Tokens.SecurityKey key);
static member ConvertFromSecurityKey : Microsoft.IdentityModel.Tokens.SecurityKey -> Microsoft.IdentityModel.Tokens.JsonWebKey
Public Shared Function ConvertFromSecurityKey (key As SecurityKey) As JsonWebKey
Parameters
- key
- SecurityKey
a SecurityKey to convert.
Returns
Exceptions
if key
is null.
if key
is not a supported type.
Remarks
Supports: RsaSecurityKey, X509SecurityKey and SymmetricSecurityKey.