JsonWebKeyConverter.ConvertFromRSASecurityKey(RsaSecurityKey) Method

Definition

Converts a RsaSecurityKey into a JsonWebKey

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

Parameters

key
RsaSecurityKey

a RsaSecurityKey to convert.

Returns

a JsonWebKey

Exceptions

if keyis null.

Applies to