Class JcaAEADSecretKeyEncryptorFactory
java.lang.Object
org.bouncycastle.openpgp.operator.jcajce.JcaAEADSecretKeyEncryptorFactory
- All Implemented Interfaces:
PBESecretKeyEncryptorFactory
public class JcaAEADSecretKeyEncryptorFactory
extends Object
implements PBESecretKeyEncryptorFactory
-
Constructor Summary
Constructors -
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
-
JcaAEADSecretKeyEncryptorFactory
public JcaAEADSecretKeyEncryptorFactory()
-
-
Method Details
-
setProvider
-
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
-