Interface PBESecretKeyEncryptorFactory
-
- All Known Implementing Classes:
BcAEADSecretKeyEncryptorFactory,BcCFBSecretKeyEncryptorFactory,JcaAEADSecretKeyEncryptorFactory,JcaCFBSecretKeyEncryptorFactory
public interface PBESecretKeyEncryptorFactoryFactory class for password-based secret key encryptors. A concrete implementation of this class can not only choose the cryptographic backend (e.g. BC, JCA/JCE), but also, whether to use AEAD (RFC9580) or classic CFB (RFC4880).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PBESecretKeyEncryptorbuild(char[] passphrase, PublicKeyPacket pubKeyPacket)Build a newPBESecretKeyEncryptorinstance from the given passphrase and public key packet.
-
-
-
Method Detail
-
build
PBESecretKeyEncryptor build(char[] passphrase, PublicKeyPacket pubKeyPacket)
Build a newPBESecretKeyEncryptorinstance from the given passphrase and public key packet.- Parameters:
passphrase- passphrasepubKeyPacket- public-key packet of the key to protect (needed for AEAD)- Returns:
- key encryptor
-
-