| Modifier and Type | Field and Description |
|---|---|
| private PGPContentSigner | |
| private PGPContentSignerBuilder | |
| private SignatureSubpacket[] | |
| private byte | |
| private int | |
| private OutputStream | |
| private int | |
| private SignatureSubpacket[] |
| Access | Constructor and Description |
|---|---|
| public | PGPSignatureGenerator(PGPContentSignerBuilder
builder to produce PGPContentSigner objects for generating signatures. contentSignerBuilder)Create a signature generator built on the passed in contentSignerBuilder. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| 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. |
| private byte[] | |
| public void | |
| private SignatureSubpacket[] | |
| private boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private void | |
| private void |
| contentSigner | back to summary |
|---|---|
| private PGPContentSigner contentSigner | |
| contentSignerBuilder | back to summary |
|---|---|
| private PGPContentSignerBuilder contentSignerBuilder | |
| hashed | back to summary |
|---|---|
| private SignatureSubpacket[] hashed | |
| lastb | back to summary |
|---|---|
| private byte lastb | |
| providedKeyAlgorithm | back to summary |
|---|---|
| private int providedKeyAlgorithm | |
| sigOut | back to summary |
|---|---|
| private OutputStream sigOut | |
| sigType | back to summary |
|---|---|
| private int sigType | |
| unhashed | back to summary |
|---|---|
| private SignatureSubpacket[] unhashed | |
| PGPSignatureGenerator | back to summary |
|---|---|
| public PGPSignatureGenerator(PGPContentSignerBuilder contentSignerBuilder) Create a signature generator built on the passed in contentSignerBuilder.
| |
| blockUpdate | back to summary |
|---|---|
| private void blockUpdate(byte[] block, int off, int len) | |
| byteUpdate | back to summary |
|---|---|
| private void byteUpdate(byte b) | |
| 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.
| |
| getEncodedPublicKey | back to summary |
|---|---|
| private byte[] getEncodedPublicKey(PGPPublicKey pubKey) throws PGPException | |
| 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) | |
| packetPresent | back to summary |
|---|---|
| private boolean packetPresent(SignatureSubpacket[] packets, int type) | |
| setHashedSubpackets | back to summary |
|---|---|
| public void setHashedSubpackets(PGPSignatureSubpacketVector hashedPcks) | |
| setUnhashedSubpackets | back to summary |
|---|---|
| public void setUnhashedSubpackets(PGPSignatureSubpacketVector unhashedPcks) | |
| update | back to summary |
|---|---|
| public void update(byte b) | |
| update | back to summary |
|---|---|
| public void update(byte[] b) | |
| update | back to summary |
|---|---|
| public void update(byte[] b, int off, int len) | |
| updateWithIdData | back to summary |
|---|---|
| private void updateWithIdData(int header, byte[] idBytes) | |
| updateWithPublicKey | back to summary |
|---|---|
| private void updateWithPublicKey(PGPPublicKey key) throws PGPException | |