fromPem

fun fromPem(pemEncoding: String, publicKey: PublicKey? = null): PrivateKey

Creates a PrivateKey from a PEM encoded string.

Return

a new PrivateKey

Parameters

pemEncoding

the PEM encoded string.

publicKey

the corresponding public key or null.