org.bouncycastle.openpgp.operator.bc
Class BcPBEDataDecryptorFactory
java.lang.Object
org.bouncycastle.openpgp.operator.PBEDataDecryptorFactory
org.bouncycastle.openpgp.operator.bc.BcPBEDataDecryptorFactory
- All Implemented Interfaces:
- PGPDataDecryptorFactory
public class BcPBEDataDecryptorFactory
- extends PBEDataDecryptorFactory
A decryptor factory for handling PBE decryption operations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BcPBEDataDecryptorFactory
public BcPBEDataDecryptorFactory(char[] pass,
BcPGPDigestCalculatorProvider calculatorProvider)
- Base constructor.
- Parameters:
pass
- the passphrase to use as the primary source of key material.calculatorProvider
- a digest calculator provider to provide calculators to support the key generation calculation required.
recoverSessionData
public byte[] recoverSessionData(int keyAlgorithm,
byte[] key,
byte[] secKeyData)
throws PGPException
- Specified by:
recoverSessionData
in class PBEDataDecryptorFactory
- Throws:
PGPException
createDataDecryptor
public PGPDataDecryptor createDataDecryptor(boolean withIntegrityPacket,
int encAlgorithm,
byte[] key)
throws PGPException
- Throws:
PGPException