toRsaPkcs1PublicKey

suspend fun Jwk.Rsa.toRsaPkcs1PublicKey(digest: CryptographyAlgorithmId<Digest>, cryptoProvider: CryptographyProvider = CryptographyProvider.Default): RSA.PKCS1.PublicKey(source)

Converts this Jwk.Rsa to an RSA.PKCS1.PublicKey for RS256/RS384/RS512 signature verification.

Return

the decoded RSA.PKCS1.PublicKey

Parameters

digest

the cryptography-kotlin digest algorithm to associate with the key

cryptoProvider

the CryptographyProvider used to decode the key; defaults to CryptographyProvider.Default