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
PGPExceptionpublic JcaCFBSecretKeyEncryptorFactory setProvider(java.security.Provider provider) throws PGPException
PGPExceptionpublic PBESecretKeyEncryptor build(char[] passphrase, PublicKeyPacket pubKeyPacket)
PBESecretKeyEncryptorFactoryPBESecretKeyEncryptor instance from the given passphrase and public key packet.build in interface PBESecretKeyEncryptorFactorypassphrase - passphrasepubKeyPacket - public-key packet of the key to protect (needed for AEAD)