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 OpenPGPKeyGenerator
OpenPGPKeyGenerator.WithPrimaryKey -
Field Summary
Fields inherited from class 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 OpenPGPKeyGenerator
classicKey, compositeRSAKey, ed25519x25519Key, ed448x448Key, mlDsa65Ed25519MlKem768X25519Key, mlDsa87Ed448MlKem1024X448Key, signOnlyKey, singletonRSAKey, slhDsaShake128fMlKem768X25519Key, slhDsaShake128sMlKem768X25519Key, slhDsaShake256sMlKem1024X448Key, withPrimaryKey, withPrimaryKey, withPrimaryKeyMethods inherited from class 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
-