public abstract static class JceExternalPublicKeyDataDecryptorFactoryBuilder.PublicKeyCryptoCallback
extends java.lang.Object
AbstractExternalPublicKeyDataDecryptorFactory drives: ephemeral keys arrive as JCA
PublicKey objects built through the configured provider, and no software private key is
passed (the key material is held externally). See that class for the split between what the
callback does and what the factory does.| Constructor and Description |
|---|
PublicKeyCryptoCallback() |
| Modifier and Type | Method and Description |
|---|---|
abstract byte[] |
decrypt(int keyAlgorithm,
byte[][] pEnc)
Perform RSA/ElGamal decryption of an encrypted session key.
|
abstract byte[] |
decrypt(int keyAlgorithm,
java.security.PublicKey ephemeralKey)
Perform an ECDH / X25519 / X448 agreement to calculate a shared secret.
|
public abstract byte[] decrypt(int keyAlgorithm,
byte[][] pEnc)
throws PGPException
keyAlgorithm - public key algorithmpEnc - encrypted session keyPGPException - if the message cannot be decryptedpublic abstract byte[] decrypt(int keyAlgorithm,
java.security.PublicKey ephemeralKey)
throws PGPException
ephemeralKey - the message's ephemeral public keyPGPException - if the message cannot be decrypted