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
PGPException
public byte[] recoverSessionData(int keyAlgorithm, byte[][] secKeyData) throws PGPException
PGPException
public PGPSessionKey getSessionKey()
getSessionKey
in interface SessionKeyDataDecryptorFactory
public PGPDataDecryptor createDataDecryptor(boolean withIntegrityPacket, int encAlgorithm, byte[] key) throws PGPException
PGPDataDecryptorFactory
createDataDecryptor
in interface PGPDataDecryptorFactory
withIntegrityPacket
- 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.