org.bouncycastle.openpgp
public class PGPV3SignatureGenerator extends Object
| Constructor Summary | |
|---|---|
| PGPV3SignatureGenerator(int keyAlgorithm, int hashAlgorithm, String provider)
Create a generator for the passed in keyAlgorithm and hashAlgorithm codes.
| |
| Method Summary | |
|---|---|
| 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 | initSign(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) |
Parameters: keyAlgorithm hashAlgorithm provider
Throws: NoSuchAlgorithmException NoSuchProviderException PGPException
Returns: PGPSignature
Throws: PGPException SignatureException
Parameters: isNested
Returns: PGPOnePassSignature
Throws: PGPException
Parameters: signatureType key
Throws: PGPException