| Modifier and Type | Field and Description |
|---|---|
| private final PGPDigestCalculator | |
| private final PGPSignatureSubpacketVector | |
| private final PBESecretKeyEncryptor | |
| private final List | |
| private final PGPContentSignerBuilder | |
| private final PGPKeyPair | |
| private final PGPSignatureSubpacketVector |
| Access | Constructor and Description |
|---|---|
| public | PGPKeyRingGenerator(int
certification level for user-ids certificationLevel, PGPKeyPair primary key primaryKey, String id to associate with the key. id, PGPDigestCalculator key checksum calculator checksumCalculator, PGPSignatureSubpacketVector hashed signature subpackets hashedPcks, PGPSignatureSubpacketVector unhashed signature subpackets unhashedPcks, PGPContentSignerBuilder builder for key certifications - will be initialised with primary secret key. keySignerBuilder, PBESecretKeyEncryptor encryptor for secret subkeys. keyEncryptor)Create a new key ring generator. |
| public | PGPKeyRingGenerator(PGPKeyPair
primary key primaryKey, PGPDigestCalculator checksum calculator checksumCalculator, PGPSignatureSubpacketVector hashed signature subpackets hashedPcks, PGPSignatureSubpacketVector unhashed signature subpackets unhashedPcks, PGPContentSignerBuilder signer builder keySignerBuilder, PBESecretKeyEncryptor key encryptor keyEncryptor)Create a new key ring generator without a user-id, but instead with a primary key carrying a direct-key signature. |
| public | PGPKeyRingGenerator(PGPSecretKeyRing
the secret key ring we want to add a subkeyto, originalSecretRing, PBESecretKeyDecryptor a decryptor for the signing primary key. secretKeyDecryptor, PGPDigestCalculator key checksum calculator checksumCalculator, PGPContentSignerBuilder builder for key certifications - will be initialised with primary secret key. keySignerBuilder, PBESecretKeyEncryptor encryptor for secret subkeys. keyEncryptor)Create a new key ring generator based on an original secret key ring. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addSubKey(PGPKeyPair
the key pair to add. keyPair)Add a sub key to the key ring to be generated with default certification and inheriting the hashed/unhashed packets of the primary key. |
| public void | addSubKey(PGPKeyPair
the key pair to add. keyPair, PGPContentSignerBuilder provide a signing builder to create the Primary Key signature. bindingSignerBldr)Add a sub key to the key ring to be generated with default certification and inheriting the hashed/unhashed packets of the primary key. |
| public void | addSubKey(PGPKeyPair
public/private key pair. keyPair, PGPSignatureSubpacketVector hashed packet values to be included in certification. hashedPcks, PGPSignatureSubpacketVector unhashed packets values to be included in certification. unhashedPcks)Add a subkey with specific hashed and unhashed packets associated with it and default certification. |
| public void | addSubKey(PGPKeyPair
public/private key pair. keyPair, PGPSignatureSubpacketVector hashed packet values to be included in certification. hashedPcks, PGPSignatureSubpacketVector unhashed packets values to be included in certification. unhashedPcks, PGPContentSignerBuilder provide a signing builder to create the Primary Key signature. bindingSignerBldr)Add a subkey with specific hashed and unhashed packets associated with it and default certification. |
| public PGPPublicKeyRing | Returns: a public key ring.Return the public key ring that corresponds to the secret key ring. |
| public PGPSecretKeyRing | |
| private PGPKeyPair |
| checksumCalculator | back to summary |
|---|---|
| private final PGPDigestCalculator checksumCalculator | |
| hashedPcks | back to summary |
|---|---|
| private final PGPSignatureSubpacketVector hashedPcks | |
| keyEncryptor | back to summary |
|---|---|
| private final PBESecretKeyEncryptor keyEncryptor | |
| keys | back to summary |
|---|---|
| private final List<PGPSecretKey> keys | |
| keySignerBuilder | back to summary |
|---|---|
| private final PGPContentSignerBuilder keySignerBuilder | |
| primaryKey | back to summary |
|---|---|
| private final PGPKeyPair primaryKey | |
| unhashedPcks | back to summary |
|---|---|
| private final PGPSignatureSubpacketVector unhashedPcks | |
| PGPKeyRingGenerator | back to summary |
|---|---|
| public PGPKeyRingGenerator(int certificationLevel, PGPKeyPair primaryKey, String id, PGPDigestCalculator checksumCalculator, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks, PGPContentSignerBuilder keySignerBuilder, PBESecretKeyEncryptor keyEncryptor) throws PGPException Create a new key ring generator.
| |
| PGPKeyRingGenerator | back to summary |
|---|---|
| public PGPKeyRingGenerator(PGPKeyPair primaryKey, PGPDigestCalculator checksumCalculator, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks, PGPContentSignerBuilder keySignerBuilder, PBESecretKeyEncryptor keyEncryptor) throws PGPException Create a new key ring generator without a user-id, but instead with a primary key carrying a direct-key signature.
| |
| PGPKeyRingGenerator | back to summary |
|---|---|
| public PGPKeyRingGenerator(PGPSecretKeyRing originalSecretRing, PBESecretKeyDecryptor secretKeyDecryptor, PGPDigestCalculator checksumCalculator, PGPContentSignerBuilder keySignerBuilder, PBESecretKeyEncryptor keyEncryptor) throws PGPException Create a new key ring generator based on an original secret key ring. The default hashed/unhashed sub-packets for subkey signatures will be inherited from the first signature on the primary key (other than CREATION-TIME which will be ignored).
| |
| addSubKey | back to summary |
|---|---|
| public void addSubKey(PGPKeyPair keyPair) throws PGPException Add a sub key to the key ring to be generated with default certification and inheriting the hashed/unhashed packets of the primary key.
| |
| addSubKey | back to summary |
|---|---|
| public void addSubKey(PGPKeyPair keyPair, PGPContentSignerBuilder bindingSignerBldr) throws PGPException Add a sub key to the key ring to be generated with default certification and inheriting the hashed/unhashed packets of the primary key. If bindingSignerBldr is not null it will be used to add a Primary Key Binding signature (type 0x19) into the hashedPcks for the key (required for signing subkeys).
| |
| addSubKey | back to summary |
|---|---|
| public void addSubKey(PGPKeyPair keyPair, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks) throws PGPException Add a subkey with specific hashed and unhashed packets associated with it and default certification.
| |
| addSubKey | back to summary |
|---|---|
| public void addSubKey(PGPKeyPair keyPair, PGPSignatureSubpacketVector hashedPcks, PGPSignatureSubpacketVector unhashedPcks, PGPContentSignerBuilder bindingSignerBldr) throws PGPException Add a subkey with specific hashed and unhashed packets associated with it and default certification. If bindingSignerBldr is not null it will be used to add a Primary Key Binding signature (type 0x19) into the hashedPcks for the key (required for signing subkeys).
| |
| generatePublicKeyRing | back to summary |
|---|---|
| public PGPPublicKeyRing generatePublicKeyRing() Return the public key ring that corresponds to the secret key ring.
| |
| generateSecretKeyRing | back to summary |
|---|---|
| public PGPSecretKeyRing generateSecretKeyRing() Return the secret key ring.
| |
| sanitizeKeyPair | back to summary |
|---|---|
| private PGPKeyPair sanitizeKeyPair(PGPKeyPair keyPair) throws PGPException | |