public class PGPKeyRingGenerator
extends java.lang.Object
Constructor and Description |
---|
PGPKeyRingGenerator(int certificationLevel,
PGPKeyPair masterKey,
java.lang.String id,
PGPDigestCalculator checksumCalculator,
PGPSignatureSubpacketVector hashedPcks,
PGPSignatureSubpacketVector unhashedPcks,
PGPContentSignerBuilder keySignerBuilder,
PBESecretKeyEncryptor keyEncryptor)
Create a new key ring generator.
|
Modifier and Type | Method and Description |
---|---|
void |
addSubKey(PGPKeyPair keyPair)
Add a sub key to the key ring to be generated with default certification and inheriting
the hashed/unhashed packets of the master key.
|
void |
addSubKey(PGPKeyPair keyPair,
PGPSignatureSubpacketVector hashedPcks,
PGPSignatureSubpacketVector unhashedPcks)
Add a subkey with specific hashed and unhashed packets associated with it and default
certification.
|
PGPPublicKeyRing |
generatePublicKeyRing()
Return the public key ring that corresponds to the secret key ring.
|
PGPSecretKeyRing |
generateSecretKeyRing()
Return the secret key ring.
|
public PGPKeyRingGenerator(int certificationLevel, PGPKeyPair masterKey, java.lang.String id, PGPDigestCalculator checksumCalculator, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks, PGPContentSignerBuilder keySignerBuilder, PBESecretKeyEncryptor keyEncryptor) throws PGPException
certificationLevel
- masterKey
- id
- checksumCalculator
- hashedPcks
- unhashedPcks
- keySignerBuilder
- keyEncryptor
- PGPException
public void addSubKey(PGPKeyPair keyPair) throws PGPException
keyPair
- PGPException
public void addSubKey(PGPKeyPair keyPair, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks) throws PGPException
keyPair
- public/private key pair.hashedPcks
- hashed packet values to be included in certification.unhashedPcks
- unhashed packets values to be included in certification.PGPException
public PGPSecretKeyRing generateSecretKeyRing()
public PGPPublicKeyRing generatePublicKeyRing()