|
Bouncy Castle Cryptography 1.71 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.openpgp.PGPKeyRingGenerator
Generator for a PGP master and subkey ring. This class will generate both the secret and public key rings
Constructor Summary | |
PGPKeyRingGenerator(int certificationLevel,
PGPKeyPair masterKey,
java.lang.String id,
org.bouncycastle.openpgp.operator.PGPDigestCalculator checksumCalculator,
PGPSignatureSubpacketVector hashedPcks,
PGPSignatureSubpacketVector unhashedPcks,
org.bouncycastle.openpgp.operator.PGPContentSignerBuilder keySignerBuilder,
org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor keyEncryptor)
Create a new key ring generator. |
|
PGPKeyRingGenerator(PGPKeyPair masterKey,
org.bouncycastle.openpgp.operator.PGPDigestCalculator checksumCalculator,
PGPSignatureSubpacketVector hashedPcks,
PGPSignatureSubpacketVector unhashedPcks,
org.bouncycastle.openpgp.operator.PGPContentSignerBuilder keySignerBuilder,
org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor keyEncryptor)
Create a new key ring generator without a user-id, but instead with a primary key carrying a direct-key signature. |
|
PGPKeyRingGenerator(PGPSecretKeyRing originalSecretRing,
org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor secretKeyDecryptor,
org.bouncycastle.openpgp.operator.PGPDigestCalculator checksumCalculator,
org.bouncycastle.openpgp.operator.PGPContentSignerBuilder keySignerBuilder,
org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor keyEncryptor)
Create a new key ring generator based on an original secret key ring. |
Method Summary | |
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,
org.bouncycastle.openpgp.operator.PGPContentSignerBuilder bindingSignerBldr)
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. |
void |
addSubKey(PGPKeyPair keyPair,
PGPSignatureSubpacketVector hashedPcks,
PGPSignatureSubpacketVector unhashedPcks,
org.bouncycastle.openpgp.operator.PGPContentSignerBuilder bindingSignerBldr)
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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public PGPKeyRingGenerator(int certificationLevel, PGPKeyPair masterKey, java.lang.String id, org.bouncycastle.openpgp.operator.PGPDigestCalculator checksumCalculator, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks, org.bouncycastle.openpgp.operator.PGPContentSignerBuilder keySignerBuilder, org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor keyEncryptor) throws PGPException
certificationLevel
- masterKey
- id
- id to associate with the key.checksumCalculator
- key checksum calculatorhashedPcks
- unhashedPcks
- keySignerBuilder
- builder for key certifications - will be initialised with master secret key.keyEncryptor
- encryptor for secret subkeys.public PGPKeyRingGenerator(PGPKeyPair masterKey, org.bouncycastle.openpgp.operator.PGPDigestCalculator checksumCalculator, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks, org.bouncycastle.openpgp.operator.PGPContentSignerBuilder keySignerBuilder, org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor keyEncryptor) throws PGPException
masterKey
- primary keychecksumCalculator
- checksum calculatorhashedPcks
- hashed signature subpacketsunhashedPcks
- unhashed signature subpacketskeySignerBuilder
- signer builderkeyEncryptor
- key encryptorpublic PGPKeyRingGenerator(PGPSecretKeyRing originalSecretRing, org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor secretKeyDecryptor, org.bouncycastle.openpgp.operator.PGPDigestCalculator checksumCalculator, org.bouncycastle.openpgp.operator.PGPContentSignerBuilder keySignerBuilder, org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor keyEncryptor) throws PGPException
originalSecretRing
- the secret key ring we want to add a subkeyto,secretKeyDecryptor
- a decryptor for the signing master key.checksumCalculator
- key checksum calculatorkeySignerBuilder
- builder for key certifications - will be initialised with master secret key.keyEncryptor
- encryptor for secret subkeys.Method Detail |
public void addSubKey(PGPKeyPair keyPair) throws PGPException
keyPair
- the key pair to add.public void addSubKey(PGPKeyPair keyPair, org.bouncycastle.openpgp.operator.PGPContentSignerBuilder bindingSignerBldr) throws PGPException
keyPair
- the key pair to add.bindingSignerBldr
- provide a signing builder to create the Primary Key signature.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.public void addSubKey(PGPKeyPair keyPair, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks, org.bouncycastle.openpgp.operator.PGPContentSignerBuilder bindingSignerBldr) 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.bindingSignerBldr
- provide a signing builder to create the Primary Key signature.public PGPSecretKeyRing generateSecretKeyRing()
public PGPPublicKeyRing generatePublicKeyRing()
|
Bouncy Castle Cryptography 1.71 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |