privateKeyToKeyPair

open fun privateKeyToKeyPair(privateKey: PrivateKey): KeyPair

Convert a private RSA key to a KeyPair with the public key.

Return

The KeyPair with the public RSA key.

Parameters

privateKey

The private RSA key.

Throws

If the algorithm can't be found on the system.

If the private key can't be parsed to a public RSA key.