Companion

object Companion

Functions

Link copied to clipboard

Parses an RSA private key from a CoseKey.

Link copied to clipboard

Parses an RSA private key from a CBOR DataItem encoding a COSE_Key.

Link copied to clipboard
fun fromJwk(jwk: JsonObject): RsaPrivateKey

Parses an RSA private key from a JSON Web Key (JWK) object.

Link copied to clipboard
fun fromPem(pemEncoding: String, publicKey: RsaPublicKey? = null): RsaPrivateKey

Parses an RSA private key from a PEM-encoded string (either PKCS#1 or PKCS#8).

Link copied to clipboard
fun fromPkcs1(derEncoding: ByteArray, publicKey: RsaPublicKey? = null): RsaPrivateKey

Parses an RSA private key from a DER-encoded PKCS#1 RSAPrivateKey sequence.

Link copied to clipboard
fun fromPrivateKeyInfo(derEncoding: ByteArray, publicKey: RsaPublicKey? = null): RsaPrivateKey

Parses an RSA private key from a DER-encoded PKCS#8 PrivateKeyInfo sequence.