Bouncy Castle Cryptography Library 1.49

org.bouncycastle.openpgp.operator.bc
Class BcPBEDataDecryptorFactory

java.lang.Object
  extended by org.bouncycastle.openpgp.operator.PBEDataDecryptorFactory
      extended by org.bouncycastle.openpgp.operator.bc.BcPBEDataDecryptorFactory
All Implemented Interfaces:
PGPDataDecryptorFactory

public class BcPBEDataDecryptorFactory
extends PBEDataDecryptorFactory

A decryptor factory for handling PBE decryption operations.


Constructor Summary
BcPBEDataDecryptorFactory(char[] pass, BcPGPDigestCalculatorProvider calculatorProvider)
          Base constructor.
 
Method Summary
 PGPDataDecryptor createDataDecryptor(boolean withIntegrityPacket, int encAlgorithm, byte[] key)
           
 byte[] recoverSessionData(int keyAlgorithm, byte[] key, byte[] secKeyData)
           
 
Methods inherited from class org.bouncycastle.openpgp.operator.PBEDataDecryptorFactory
makeKeyFromPassPhrase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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

Bouncy Castle Cryptography Library 1.49