parsePrivateKey
Decodes an RSA-OAEP private key from a ByteArray for use with this algorithm.
The returned EncryptionKey is an EncryptionKey.DecryptionOnlyKey that can decrypt tokens but cannot encrypt them.
Return
an EncryptionKey wrapping the decoded RSA.OAEP.PrivateKey.
Parameters
the private key material to decode.
optional key ID to associate with the decoded key. Defaults to null.
the format in which key is encoded. Defaults to RSA.PrivateKey.Format.PEM.
the provider used to perform key decoding.
Decodes an RSA PKCS#1 v1.5 private key from a ByteArray for use with this algorithm.
The returned SigningKey is a SigningKey.SigningOnlyKey that can produce signatures but cannot verify them.
Return
a SigningKey wrapping the decoded RSA.PKCS1.PrivateKey.
Parameters
the private key material to decode.
optional key ID to associate with the decoded key. Defaults to null.
the format in which key is encoded. Defaults to RSA.PrivateKey.Format.PEM.
the provider used to perform key decoding.
Decodes an RSA PSS private key from a ByteArray for use with this algorithm.
The returned SigningKey is a SigningKey.SigningOnlyKey that can produce signatures but cannot verify them.
Return
a SigningKey wrapping the decoded RSA.PSS.PrivateKey.
Parameters
the private key material to decode.
optional key ID to associate with the decoded key. Defaults to null.
the format in which key is encoded. Defaults to RSA.PrivateKey.Format.PEM.
the provider used to perform key decoding.
Decodes an ECDSA private key from a ByteArray for use with this algorithm.
The returned SigningKey is a SigningKey.SigningOnlyKey that can produce signatures but cannot verify them.
Return
a SigningKey wrapping the decoded ECDSA.PrivateKey.
Parameters
the private key material to decode.
optional key ID to associate with the decoded key. Defaults to null.
the format in which key is encoded. Defaults to EC.PrivateKey.Format.RAW.
the provider used to perform key decoding.