rsa static method
Creates a JsonWebKey of type RSA
Implementation
static JsonWebKey rsa({
required BigInt modulus,
BigInt? exponent,
BigInt? privateExponent,
BigInt? firstPrimeFactor,
BigInt? secondPrimeFactor,
String? keyId,
String? algorithm,
}) =>
JsonWebKey.fromJson({
'kty': 'RSA',
'n': _intToBase64(modulus),
if (exponent != null) 'e': _intToBase64(exponent),
if (privateExponent != null) 'd': _intToBase64(privateExponent),
if (firstPrimeFactor != null) 'p': _intToBase64(firstPrimeFactor),
if (secondPrimeFactor != null) 'q': _intToBase64(secondPrimeFactor),
if (keyId != null) 'kid': keyId,
if (algorithm != null) 'alg': algorithm
})!;