Bouncy Castle Cryptography Library 1.81

org.bouncycastle.openpgp.operator.jcajce
Class JcaCFBSecretKeyEncryptorFactory

java.lang.Object
  extended byorg.bouncycastle.openpgp.operator.jcajce.JcaCFBSecretKeyEncryptorFactory
All Implemented Interfaces:
PBESecretKeyEncryptorFactory

public class JcaCFBSecretKeyEncryptorFactory
extends java.lang.Object
implements PBESecretKeyEncryptorFactory


Constructor Summary
JcaCFBSecretKeyEncryptorFactory(int symmetricKeyAlgorithm, int iterationCount)
           
 
Method Summary
 PBESecretKeyEncryptor build(char[] passphrase, PublicKeyPacket pubKeyPacket)
          Build a new PBESecretKeyEncryptor instance from the given passphrase and public key packet.
 JcaCFBSecretKeyEncryptorFactory setProvider(java.security.Provider provider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcaCFBSecretKeyEncryptorFactory

public JcaCFBSecretKeyEncryptorFactory(int symmetricKeyAlgorithm,
                                       int iterationCount)
                                throws PGPException
Method Detail

setProvider

public JcaCFBSecretKeyEncryptorFactory setProvider(java.security.Provider provider)
                                            throws PGPException
Throws:
PGPException

build

public PBESecretKeyEncryptor build(char[] passphrase,
                                   PublicKeyPacket pubKeyPacket)
Description copied from interface: PBESecretKeyEncryptorFactory
Build a new PBESecretKeyEncryptor instance from the given passphrase and public key packet.

Specified by:
build in interface PBESecretKeyEncryptorFactory
Parameters:
passphrase - passphrase
pubKeyPacket - public-key packet of the key to protect (needed for AEAD)
Returns:
key encryptor

Bouncy Castle Cryptography Library 1.81