Interface AEADSecretKeyEncryptorBuilder
-
- All Known Implementing Classes:
BcAEADSecretKeyEncryptorBuilder,JcaAEADSecretKeyEncryptorBuilder
public interface AEADSecretKeyEncryptorBuilderImplementation provider for AEAD-basedPBESecretKeyEncryptors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PBESecretKeyEncryptorbuild(char[] passphrase, PublicKeyPacket pubKey)Build a newPBESecretKeyEncryptorusing the given passphrase.
-
-
-
Method Detail
-
build
PBESecretKeyEncryptor build(char[] passphrase, PublicKeyPacket pubKey)
Build a newPBESecretKeyEncryptorusing the given passphrase. Note: As the AEAD protection mechanism includes the public key packet of the key into the calculation, if the key you want to protect is supposed to be a subkey, you need to convert it to one before calling this method. SeePGPKeyPair.asSubkey(KeyFingerPrintCalculator).- Parameters:
passphrase- passphrasepubKey- public primary or subkey packet- Returns:
- encryptor using AEAD
-
-