public class BcSessionKeyDataDecryptorFactory extends java.lang.Object implements SessionKeyDataDecryptorFactory
| Constructor and Description |
|---|
BcSessionKeyDataDecryptorFactory(PGPSessionKey sessionKey) |
| Modifier and Type | Method and Description |
|---|---|
PGPDataDecryptor |
createDataDecryptor(boolean withIntegrityPacket,
int encAlgorithm,
byte[] key)
Constructs a data decryptor.
|
PGPSessionKey |
getSessionKey() |
byte[] |
recoverSessionData(int keyAlgorithm,
byte[][] secKeyData) |
byte[] |
recoverSessionData(int keyAlgorithm,
byte[] key,
byte[] seckKeyData) |
public BcSessionKeyDataDecryptorFactory(PGPSessionKey sessionKey)
public byte[] recoverSessionData(int keyAlgorithm,
byte[] key,
byte[] seckKeyData)
throws PGPException
PGPExceptionpublic byte[] recoverSessionData(int keyAlgorithm,
byte[][] secKeyData)
throws PGPException
PGPExceptionpublic PGPSessionKey getSessionKey()
getSessionKey in interface SessionKeyDataDecryptorFactorypublic PGPDataDecryptor createDataDecryptor(boolean withIntegrityPacket, int encAlgorithm, byte[] key) throws PGPException
PGPDataDecryptorFactorycreateDataDecryptor in interface PGPDataDecryptorFactorywithIntegrityPacket - true if the packet to be decrypted has integrity
checking enabled.encAlgorithm - the identifier of the encryption
algorithm to decrypt with.key - the bytes of the key for the cipher.PGPException - if an error occurs initialising the decryption and integrity checking
functions.