Package org.bouncycastle.openpgp.api.bc
Class BcOpenPGPV6KeyGenerator
java.lang.Object
org.bouncycastle.openpgp.api.OpenPGPV6KeyGenerator
org.bouncycastle.openpgp.api.bc.BcOpenPGPV6KeyGenerator
Bouncy Castle implementation of
OpenPGPV6KeyGenerator
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bouncycastle.openpgp.api.OpenPGPV6KeyGenerator
OpenPGPV6KeyGenerator.WithPrimaryKey
-
Field Summary
Fields inherited from class org.bouncycastle.openpgp.api.OpenPGPV6KeyGenerator
DEFAULT_AEAD_ALGORITHM_PREFERENCES, DEFAULT_COMPRESSION_ALGORITHM_PREFERENCES, DEFAULT_FEATURES, DEFAULT_HASH_ALGORITHM_PREFERENCES, DEFAULT_SIGNATURE_HASH_ALGORITHM, DEFAULT_SYMMETRIC_KEY_PREFERENCES, DIRECT_KEY_SIGNATURE_SUBPACKETS, ENCRYPTION_SUBKEY_SUBPACKETS, SIGNING_SUBKEY_SUBPACKETS
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new key generator for OpenPGP v6 keys.BcOpenPGPV6KeyGenerator
(int signatureHashAlgorithm) Create a new key generator for OpenPGP v6 keys.BcOpenPGPV6KeyGenerator
(int signatureHashAlgorithm, Date creationTime, boolean aeadProtection) Create a new OpenPGP key generator for v6 keys.BcOpenPGPV6KeyGenerator
(Date creationTime) Create a new key generator for OpenPGP v6 keys. -
Method Summary
Methods inherited from class org.bouncycastle.openpgp.api.OpenPGPV6KeyGenerator
classicKey, ed25519x25519Key, ed448x448Key, signOnlyKey, signOnlyKey, signOnlyKey, withPrimaryKey, withPrimaryKey, withPrimaryKey, withPrimaryKey, withPrimaryKey, withPrimaryKey, withPrimaryKey
-
Constructor Details
-
BcOpenPGPV6KeyGenerator
public BcOpenPGPV6KeyGenerator()Create a new key generator for OpenPGP v6 keys. -
BcOpenPGPV6KeyGenerator
Create a new key generator for OpenPGP v6 keys. The key creation time will be set tocreationTime
- Parameters:
creationTime
- creation time of the generated OpenPGP key
-
BcOpenPGPV6KeyGenerator
public BcOpenPGPV6KeyGenerator(int signatureHashAlgorithm) Create a new key generator for OpenPGP v6 keys. Signatures on the key will be generated using the specifiedsignatureHashAlgorithm
.- Parameters:
signatureHashAlgorithm
- ID of the hash algorithm to be used for signature generation
-
BcOpenPGPV6KeyGenerator
public BcOpenPGPV6KeyGenerator(int signatureHashAlgorithm, Date creationTime, boolean aeadProtection) Create a new OpenPGP key generator for v6 keys.- Parameters:
signatureHashAlgorithm
- ID of the hash algorithm used for signatures on the keycreationTime
- creation time of the key and signatures
-