|
Bouncy Castle Cryptography 1.51 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.openpgp.operator.bc.BcPublicKeyDataDecryptorFactory
public class BcPublicKeyDataDecryptorFactory
A decryptor factory for handling public key decryption operations.
Constructor Summary | |
---|---|
BcPublicKeyDataDecryptorFactory(PGPPrivateKey privKey)
|
Method Summary | |
---|---|
PGPDataDecryptor |
createDataDecryptor(boolean withIntegrityPacket,
int encAlgorithm,
byte[] key)
Constructs a data decryptor. |
byte[] |
recoverSessionData(int keyAlgorithm,
byte[][] secKeyData)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BcPublicKeyDataDecryptorFactory(PGPPrivateKey privKey)
Method Detail |
---|
public byte[] recoverSessionData(int keyAlgorithm, byte[][] secKeyData) throws PGPException
recoverSessionData
in interface PublicKeyDataDecryptorFactory
PGPException
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.
|
Bouncy Castle Cryptography 1.51 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |