parsePublicKey
Decodes an RSA-OAEP public key from a ByteArray for use with this algorithm.
The returned EncryptionKey is an EncryptionKey.EncryptionOnlyKey that can encrypt tokens but cannot decrypt them.
Return
an EncryptionKey wrapping the decoded RSA.OAEP.PublicKey.
Parameters
the public 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.PublicKey.Format.PEM.
the provider used to perform key decoding.
Decodes an RSA PKCS#1 v1.5 public key from a ByteArray for use with this algorithm.
The returned SigningKey is a SigningKey.VerifyOnlyKey that can verify signatures but cannot produce them.
Return
a SigningKey wrapping the decoded RSA.PKCS1.PublicKey.
Parameters
the public 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.PublicKey.Format.PEM.
the provider used to perform key decoding.
Decodes an RSA PSS public key from a ByteArray for use with this algorithm.
The returned SigningKey is a SigningKey.VerifyOnlyKey that can verify signatures but cannot produce them.
Return
a SigningKey wrapping the decoded RSA.PSS.PublicKey.
Parameters
the public 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.PublicKey.Format.PEM.
the provider used to perform key decoding.
Decodes an ECDSA public key from a ByteArray for use with this algorithm.
The returned SigningKey is a SigningKey.VerifyOnlyKey that can verify signatures but cannot produce them.
Return
a SigningKey wrapping the decoded ECDSA.PublicKey.
Parameters
the public 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.PublicKey.Format.RAW.
the provider used to perform key decoding.