Class JcaCFBSecretKeyEncryptorFactory
java.lang.Object
org.bouncycastle.openpgp.operator.jcajce.JcaCFBSecretKeyEncryptorFactory
- All Implemented Interfaces:
PBESecretKeyEncryptorFactory
-
Constructor Summary
ConstructorsConstructorDescriptionJcaCFBSecretKeyEncryptorFactory
(int symmetricKeyAlgorithm, int iterationCount) -
Method Summary
Modifier and TypeMethodDescriptionbuild
(char[] passphrase, PublicKeyPacket pubKeyPacket) Build a newPBESecretKeyEncryptor
instance from the given passphrase and public key packet.setProvider
(Provider provider)
-
Constructor Details
-
JcaCFBSecretKeyEncryptorFactory
public JcaCFBSecretKeyEncryptorFactory(int symmetricKeyAlgorithm, int iterationCount) throws PGPException - Throws:
PGPException
-
-
Method Details
-
setProvider
- Throws:
PGPException
-
build
Description copied from interface:PBESecretKeyEncryptorFactory
Build a newPBESecretKeyEncryptor
instance from the given passphrase and public key packet.- Specified by:
build
in interfacePBESecretKeyEncryptorFactory
- Parameters:
passphrase
- passphrasepubKeyPacket
- public-key packet of the key to protect (needed for AEAD)- Returns:
- key encryptor
-