parseKeyPair
Decodes an RSA-OAEP key pair from separate public and private key ByteArrays.
The returned EncryptionKey is an EncryptionKey.EncryptionKeyPair containing both keys, usable for encryption and decryption.
Return
an EncryptionKey wrapping the decoded RSA.OAEP key pair.
Parameters
the public key material to decode.
the private key material to decode.
optional key ID to associate with the decoded key pair. Defaults to null.
the format in which publicKey is encoded. Defaults to RSA.PublicKey.Format.PEM.
the format in which privateKey is encoded. Defaults to RSA.PrivateKey.Format.PEM.
the provider used to perform key decoding.
Decodes an RSA PKCS#1 v1.5 key pair from separate public and private key ByteArrays.
The returned SigningKey is a SigningKey.SigningKeyPair containing both keys, usable for signing and verification.
Return
a SigningKey wrapping the decoded RSA.PKCS1 key pair.
Parameters
the public key material to decode.
the private key material to decode.
optional key ID to associate with the decoded key pair. Defaults to null.
the format in which publicKey is encoded. Defaults to RSA.PublicKey.Format.PEM.
the format in which privateKey is encoded. Defaults to RSA.PrivateKey.Format.PEM.
the provider used to perform key decoding.
Decodes an RSA PSS key pair from separate public and private key ByteArrays.
The returned SigningKey is a SigningKey.SigningKeyPair containing both keys, usable for signing and verification.
Return
a SigningKey wrapping the decoded RSA.PSS key pair.
Parameters
the public key material to decode.
the private key material to decode.
optional key ID to associate with the decoded key pair. Defaults to null.
the format in which publicKey is encoded. Defaults to RSA.PublicKey.Format.PEM.
the format in which privateKey is encoded. Defaults to RSA.PrivateKey.Format.PEM.
the provider used to perform key decoding.
Decodes an ECDSA key pair from separate public and private key ByteArrays.
The returned SigningKey is a SigningKey.SigningKeyPair containing both keys, usable for signing and verification.
Return
a SigningKey wrapping the decoded ECDSA key pair.
Parameters
the public key material to decode.
the private key material to decode.
optional key ID to associate with the decoded key pair. Defaults to null.
the format in which publicKey is encoded. Defaults to EC.PublicKey.Format.RAW.
the format in which privateKey is encoded. Defaults to EC.PrivateKey.Format.RAW.
the provider used to perform key decoding.