Bouncy Castle Cryptography Library 1.47

org.bouncycastle.openpgp.operator.bc
Class BcPublicKeyDataDecryptorFactory

java.lang.Object
  extended by org.bouncycastle.openpgp.operator.bc.BcPublicKeyDataDecryptorFactory
All Implemented Interfaces:
PGPDataDecryptorFactory, PublicKeyDataDecryptorFactory

public class BcPublicKeyDataDecryptorFactory
extends java.lang.Object
implements PublicKeyDataDecryptorFactory

A decryptor factory for handling public key decryption operations.


Constructor Summary
BcPublicKeyDataDecryptorFactory(PGPPrivateKey privKey)
           
 
Method Summary
 PGPDataDecryptor createDataDecryptor(boolean withIntegrityPacket, int encAlgorithm, byte[] key)
           
 byte[] recoverSessionData(int keyAlgorithm, java.math.BigInteger[] secKeyData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BcPublicKeyDataDecryptorFactory

public BcPublicKeyDataDecryptorFactory(PGPPrivateKey privKey)
Method Detail

recoverSessionData

public byte[] recoverSessionData(int keyAlgorithm,
                                 java.math.BigInteger[] secKeyData)
                          throws PGPException
Specified by:
recoverSessionData in interface PublicKeyDataDecryptorFactory
Throws:
PGPException

createDataDecryptor

public PGPDataDecryptor createDataDecryptor(boolean withIntegrityPacket,
                                            int encAlgorithm,
                                            byte[] key)
                                     throws PGPException
Specified by:
createDataDecryptor in interface PGPDataDecryptorFactory
Throws:
PGPException

Bouncy Castle Cryptography Library 1.47