public class JcaCFBSecretKeyEncryptorFactory extends java.lang.Object implements PBESecretKeyEncryptorFactory
Constructor and Description |
---|
JcaCFBSecretKeyEncryptorFactory(int symmetricKeyAlgorithm,
int iterationCount) |
Modifier and Type | Method and Description |
---|---|
PBESecretKeyEncryptor |
build(char[] passphrase,
PublicKeyPacket pubKeyPacket)
Build a new
PBESecretKeyEncryptor instance from the given passphrase and public key packet. |
JcaCFBSecretKeyEncryptorFactory |
setProvider(java.security.Provider provider) |
public JcaCFBSecretKeyEncryptorFactory(int symmetricKeyAlgorithm, int iterationCount) throws PGPException
PGPException
public JcaCFBSecretKeyEncryptorFactory setProvider(java.security.Provider provider) throws PGPException
PGPException
public PBESecretKeyEncryptor build(char[] passphrase, PublicKeyPacket pubKeyPacket)
PBESecretKeyEncryptorFactory
PBESecretKeyEncryptor
instance from the given passphrase and public key packet.build
in interface PBESecretKeyEncryptorFactory
passphrase
- passphrasepubKeyPacket
- public-key packet of the key to protect (needed for AEAD)