Package org.bouncycastle.openpgp.api.bc
Class BcOpenPGPKeyGenerator
java.lang.Object
org.bouncycastle.openpgp.api.AbstractOpenPGPKeySignatureGenerator
org.bouncycastle.openpgp.api.OpenPGPKeyGenerator
org.bouncycastle.openpgp.api.bc.BcOpenPGPKeyGenerator
Bouncy Castle implementation of
OpenPGPKeyGenerator
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bouncycastle.openpgp.api.OpenPGPKeyGenerator
OpenPGPKeyGenerator.WithPrimaryKey
-
Field Summary
Fields inherited from class org.bouncycastle.openpgp.api.AbstractOpenPGPKeySignatureGenerator
defaultAeadAlgorithmPreferences, defaultCompressionAlgorithmPreferences, defaultFeatures, defaultHashAlgorithmPreferences, defaultSymmetricKeyPreferences, directKeySignatureSubpackets, encryptionSubkeySubpackets, signingSubkeySubpackets
-
Constructor Summary
ConstructorsConstructorDescriptionBcOpenPGPKeyGenerator
(int version) Create a new key generator for OpenPGP v6 keys.BcOpenPGPKeyGenerator
(int version, Date creationTime) Create a new key generator for OpenPGP v6 keys.BcOpenPGPKeyGenerator
(int version, Date creationTime, boolean aeadProtection) Create a new OpenPGP key generator for v6 keys. -
Method Summary
Methods inherited from class org.bouncycastle.openpgp.api.OpenPGPKeyGenerator
classicKey, ed25519x25519Key, ed448x448Key, signOnlyKey, withPrimaryKey, withPrimaryKey, withPrimaryKey
Methods inherited from class org.bouncycastle.openpgp.api.AbstractOpenPGPKeySignatureGenerator
setDefaultAeadAlgorithmPreferences, setDefaultCompressionAlgorithmPreferences, setDefaultFeatures, setDefaultHashAlgorithmPreferences, setDefaultSymmetricKeyPreferences, setDirectKeySignatureSubpackets, setEncryptionSubkeySubpackets, setSigningSubkeySubpackets
-
Constructor Details
-
BcOpenPGPKeyGenerator
Create a new key generator for OpenPGP v6 keys.- Parameters:
version
- key version- Throws:
PGPException
-
BcOpenPGPKeyGenerator
Create a new key generator for OpenPGP v6 keys. The key creation time will be set tocreationTime
- Parameters:
version
- key versioncreationTime
- creation time of the generated OpenPGP key- Throws:
PGPException
-
BcOpenPGPKeyGenerator
public BcOpenPGPKeyGenerator(int version, Date creationTime, boolean aeadProtection) throws PGPException Create a new OpenPGP key generator for v6 keys.- Parameters:
version
- key versioncreationTime
- creation time of the key and signaturesaeadProtection
- whether the key shall be protected using AEAD. If false, the key is protected using CFB.- Throws:
PGPException
-