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 newPBESecretKeyEncryptorinstance from the given passphrase and public key packet.setProvider(Provider provider)
-
Constructor Details
-
JcaAEADSecretKeyEncryptorFactory
public JcaAEADSecretKeyEncryptorFactory()
-
-
Method Details
-
setProvider
-
build
Description copied from interface:PBESecretKeyEncryptorFactoryBuild a newPBESecretKeyEncryptorinstance from the given passphrase and public key packet.- Specified by:
buildin interfacePBESecretKeyEncryptorFactory- Parameters:
passphrase- passphrasepubKeyPacket- public-key packet of the key to protect (needed for AEAD)- Returns:
- key encryptor
-