public class PGPV3SignatureGenerator
extends java.lang.Object
| Constructor | Description |
|---|---|
PGPV3SignatureGenerator(PGPContentSignerBuilder contentSignerBuilder) |
Create a signature generator built on the passed in contentSignerBuilder.
|
| Modifier and Type | Method | Description |
|---|---|---|
PGPSignature |
generate() |
Return a V3 signature object containing the current signature state.
|
PGPOnePassSignature |
generateOnePassVersion(boolean isNested) |
Return the one pass header associated with the current signature.
|
void |
init(int signatureType,
PGPPrivateKey key) |
Initialise the generator for signing.
|
void |
update(byte b) |
|
void |
update(byte[] b) |
|
void |
update(byte[] b,
int off,
int len) |
public PGPV3SignatureGenerator(PGPContentSignerBuilder contentSignerBuilder)
contentSignerBuilder - builder to produce PGPContentSigner objects for generating signatures.public void init(int signatureType,
PGPPrivateKey key)
throws PGPException
signatureType - key - PGPExceptionpublic void update(byte b)
public void update(byte[] b)
public void update(byte[] b,
int off,
int len)
public PGPOnePassSignature generateOnePassVersion(boolean isNested) throws PGPException
isNested - PGPExceptionpublic PGPSignature generate() throws PGPException
PGPException