| Modifier and Type | Field and Description |
|---|---|
| private PGPContentSigner | |
| private PGPContentSignerBuilder | |
| private SignatureSubpacket[] | |
| private int | |
| private byte[] | |
| private PGPPublicKey | |
| private SignatureSubpacket[] |
| Access | Constructor and Description |
|---|---|
| public | PGPSignatureGenerator(PGPContentSignerBuilder
builder to produce PGPContentSigner objects for generating signatures. contentSignerBuilder)
Deprecated
use
PGPSignatureGenerator(PGPContentSignerBuilder, PGPPublicKey) instead.
Create a version 4 signature generator built on the passed in contentSignerBuilder. |
| pack-priv | PGPSignatureGenerator(PGPContentSignerBuilder
builder to produce PGPContentSigner objects for generating signatures. contentSignerBuilder, int signature version version)Create a signature generator built on the passed in contentSignerBuilder. |
| public | PGPSignatureGenerator(PGPContentSignerBuilder
builder to produce PGPContentSigner objects for generating signatures contentSignerBuilder, PGPPublicKey signing key signingKey)Create a signature generator built on the passed in contentSignerBuilder. |
| public | PGPSignatureGenerator(PGPContentSignerBuilder contentSignerBuilder, PGPPublicKey signingKey, int signatureVersion)
|
| Modifier and Type | Method and Description |
|---|---|
| public PGPSignature | |
| public PGPSignature | Returns: the certification.the id we are certifying against the public key. id, PGPPublicKey the key we are certifying against the id. pubKey)Generate a certification for the passed in id and key. |
| public PGPSignature | Returns: the certification.the id we are certifying against the public key. userAttributes, PGPPublicKey the key we are certifying against the id. pubKey)Generate a certification for the passed in userAttributes |
| public PGPSignature | Returns: the certification.the key we are certifying against. masterKey, PGPPublicKey the key we are certifying. pubKey)Generate a certification for the passed in key against the passed in master key. |
| public PGPSignature | Returns: the certification.the key we are certifying. pubKey)Generate a certification, such as a revocation, for the passed in key. |
| public PGPOnePassSignature | Returns: PGPOnePassSignaturetrue if the signature is nested, false otherwise. isNested)Return the one pass header associated with the current signature. |
| public void | init(int
type of signature signatureType, PGPPrivateKey private signing key key)Initialise the generator for signing. |
| private SignatureSubpacket[] | |
| private boolean | |
| protected void | |
| public void | setHashedSubpackets(PGPSignatureSubpacketVector
hashed signature subpackets hashedPcks)Set the hashed signature subpackets. |
| public void | setUnhashedSubpackets(PGPSignatureSubpacketVector
unhashed signature subpackets unhashedPcks)Set the unhashed signature subpackets. |
| private OnePassSignaturePacket | |
| private OnePassSignaturePacket |
| contentSigner | back to summary |
|---|---|
| private PGPContentSigner contentSigner | |
| contentSignerBuilder | back to summary |
|---|---|
| private PGPContentSignerBuilder contentSignerBuilder | |
| hashed | back to summary |
|---|---|
| private SignatureSubpacket[] hashed | |
| providedKeyAlgorithm | back to summary |
|---|---|
| private int providedKeyAlgorithm | |
| salt | back to summary |
|---|---|
| private byte[] salt | |
| signingPubKey | back to summary |
|---|---|
| private PGPPublicKey signingPubKey | |
| unhashed | back to summary |
|---|---|
| private SignatureSubpacket[] unhashed | |
| PGPSignatureGenerator | back to summary |
|---|---|
| public PGPSignatureGenerator(PGPContentSignerBuilder contentSignerBuilder)
Deprecated use Create a version 4 signature generator built on the passed in contentSignerBuilder.
| |
| PGPSignatureGenerator | back to summary |
|---|---|
| pack-priv PGPSignatureGenerator(PGPContentSignerBuilder contentSignerBuilder, int version) Create a signature generator built on the passed in contentSignerBuilder.
| |
| PGPSignatureGenerator | back to summary |
|---|---|
| public PGPSignatureGenerator(PGPContentSignerBuilder contentSignerBuilder, PGPPublicKey signingKey) Create a signature generator built on the passed in contentSignerBuilder. The produces signature version will match the version of the passed in signing key.
| |
| PGPSignatureGenerator | back to summary |
|---|---|
| public PGPSignatureGenerator(PGPContentSignerBuilder contentSignerBuilder, PGPPublicKey signingKey, int signatureVersion) | |
| generate | back to summary |
|---|---|
| public PGPSignature generate() throws PGPException Return a signature object containing the current signature state.
| |
| generateCertification | back to summary |
|---|---|
| public PGPSignature generateCertification(String id, PGPPublicKey pubKey) throws PGPException Generate a certification for the passed in id and key.
| |
| generateCertification | back to summary |
|---|---|
| public PGPSignature generateCertification(PGPUserAttributeSubpacketVector userAttributes, PGPPublicKey pubKey) throws PGPException Generate a certification for the passed in userAttributes
| |
| generateCertification | back to summary |
|---|---|
| public PGPSignature generateCertification(PGPPublicKey masterKey, PGPPublicKey pubKey) throws PGPException Generate a certification for the passed in key against the passed in master key.
| |
| generateCertification | back to summary |
|---|---|
| public PGPSignature generateCertification(PGPPublicKey pubKey) throws PGPException Generate a certification, such as a revocation, for the passed in key.
| |
| generateOnePassVersion | back to summary |
|---|---|
| public PGPOnePassSignature generateOnePassVersion(boolean isNested) throws PGPException Return the one pass header associated with the current signature.
| |
| init | back to summary |
|---|---|
| public void init(int signatureType, PGPPrivateKey key) throws PGPException Initialise the generator for signing.
| |
| insertSubpacket | back to summary |
|---|---|
| private SignatureSubpacket[] insertSubpacket(SignatureSubpacket[] packets, SignatureSubpacket subpacket) | |
| packetNotPresent | back to summary |
|---|---|
| private boolean packetNotPresent(SignatureSubpacket[] packets, int type) | |
| prepareSignatureSubpackets | back to summary |
|---|---|
| protected void prepareSignatureSubpackets() throws PGPException | |
| setHashedSubpackets | back to summary |
|---|---|
| public void setHashedSubpackets(PGPSignatureSubpacketVector hashedPcks) Set the hashed signature subpackets. Hashed signature subpackets are covered by the signature.
| |
| setUnhashedSubpackets | back to summary |
|---|---|
| public void setUnhashedSubpackets(PGPSignatureSubpacketVector unhashedPcks) Set the unhashed signature subpackets. Unhashed signature subpackets are not covered by the signature.
| |
| v3OPSPacket | back to summary |
|---|---|
| private OnePassSignaturePacket v3OPSPacket(boolean isNested) | |
| v6OPSPacket | back to summary |
|---|---|
| private OnePassSignaturePacket v6OPSPacket(boolean isNested) | |