Top Description Fields Constructors Methods
org.bouncycastle.openpgp.api.bc

public Class BcOpenPGPV6KeyGenerator

extends OpenPGPV6KeyGenerator
Class Inheritance
Imports
org.bouncycastle.openpgp.api.OpenPGPV6KeyGenerator, org.bouncycastle.openpgp.operator.PBESecretKeyEncryptorFactory, org.bouncycastle.openpgp.operator.bc.BcAEADSecretKeyEncryptorFactory, .BcCFBSecretKeyEncryptorFactory, .BcKeyFingerprintCalculator, .BcPGPContentSignerBuilderProvider, .BcPGPDigestCalculatorProvider, .BcPGPKeyPairGeneratorProvider, java.util.Date

Bouncy Castle implementation of OpenPGPV6KeyGenerator.

Field Summary

Inherited from org.bouncycastle.openpgp.api.OpenPGPV6KeyGenerator:
DEFAULT_AEAD_ALGORITHM_PREFERENCESDEFAULT_COMPRESSION_ALGORITHM_PREFERENCESDEFAULT_FEATURESDEFAULT_HASH_ALGORITHM_PREFERENCESDEFAULT_SIGNATURE_HASH_ALGORITHMDEFAULT_SYMMETRIC_KEY_PREFERENCESDIRECT_KEY_SIGNATURE_SUBPACKETSENCRYPTION_SUBKEY_SUBPACKETSSIGNING_SUBKEY_SUBPACKETS

Constructor Summary

AccessConstructor and Description
public
BcOpenPGPV6KeyGenerator()

Create a new key generator for OpenPGP v6 keys.

public
BcOpenPGPV6KeyGenerator(Date
creation time of the generated OpenPGP key
creationTime
)

Create a new key generator for OpenPGP v6 keys.

public
BcOpenPGPV6KeyGenerator(int
ID of the hash algorithm to be used for signature generation
signatureHashAlgorithm
)

Create a new key generator for OpenPGP v6 keys.

public
BcOpenPGPV6KeyGenerator(int
ID of the hash algorithm used for signatures on the key
signatureHashAlgorithm
,
Date
creation time of the key and signatures
creationTime
,
boolean aeadProtection)

Create a new OpenPGP key generator for v6 keys.

Method Summary

Modifier and TypeMethod and Description
private static PBESecretKeyEncryptorFactory
keyEncryptorFactory(boolean aeadProtection)

Inherited from org.bouncycastle.openpgp.api.OpenPGPV6KeyGenerator:
classicKeyed25519x25519Keyed448x448KeysignOnlyKeysignOnlyKeysignOnlyKeywithPrimaryKeywithPrimaryKeywithPrimaryKeywithPrimaryKeywithPrimaryKeywithPrimaryKeywithPrimaryKey

Constructor Detail

BcOpenPGPV6KeyGeneratorback to summary
public BcOpenPGPV6KeyGenerator()

Create a new key generator for OpenPGP v6 keys.

BcOpenPGPV6KeyGeneratorback to summary
public BcOpenPGPV6KeyGenerator(Date creationTime)

Create a new key generator for OpenPGP v6 keys. The key creation time will be set to creationTime

Parameters
creationTime:Date

creation time of the generated OpenPGP key

BcOpenPGPV6KeyGeneratorback to summary
public BcOpenPGPV6KeyGenerator(int signatureHashAlgorithm)

Create a new key generator for OpenPGP v6 keys. Signatures on the key will be generated using the specified signatureHashAlgorithm.

Parameters
signatureHashAlgorithm:int

ID of the hash algorithm to be used for signature generation

BcOpenPGPV6KeyGeneratorback to summary
public BcOpenPGPV6KeyGenerator(int signatureHashAlgorithm, Date creationTime, boolean aeadProtection)

Create a new OpenPGP key generator for v6 keys.

Parameters
signatureHashAlgorithm:int

ID of the hash algorithm used for signatures on the key

creationTime:Date

creation time of the key and signatures

Method Detail

keyEncryptorFactoryback to summary
private static PBESecretKeyEncryptorFactory keyEncryptorFactory(boolean aeadProtection)