org.bouncycastle.openpgp
public class PGPV3SignatureGenerator extends java.lang.Object
| Constructor and Description |
|---|
PGPV3SignatureGenerator(int keyAlgorithm,
int hashAlgorithm,
java.security.Provider provider) |
PGPV3SignatureGenerator(int keyAlgorithm,
int hashAlgorithm,
java.lang.String provider)
Create a generator for the passed in keyAlgorithm and hashAlgorithm codes.
|
| Modifier and Type | Method and 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 |
initSign(int signatureType,
PGPPrivateKey key)
Initialise the generator for signing.
|
void |
initSign(int signatureType,
PGPPrivateKey key,
java.security.SecureRandom random)
Initialise the generator for signing.
|
void |
update(byte b) |
void |
update(byte[] b) |
void |
update(byte[] b,
int off,
int len) |
public PGPV3SignatureGenerator(int keyAlgorithm,
int hashAlgorithm,
java.lang.String provider)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
PGPException
keyAlgorithm - hashAlgorithm - provider - java.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionPGPExceptionpublic PGPV3SignatureGenerator(int keyAlgorithm,
int hashAlgorithm,
java.security.Provider provider)
throws java.security.NoSuchAlgorithmException,
PGPException
java.security.NoSuchAlgorithmExceptionPGPExceptionpublic void initSign(int signatureType,
PGPPrivateKey key)
throws PGPException
signatureType - key - PGPExceptionpublic void initSign(int signatureType,
PGPPrivateKey key,
java.security.SecureRandom random)
throws PGPException
signatureType - key - random - PGPExceptionpublic void update(byte b)
throws java.security.SignatureException
java.security.SignatureExceptionpublic void update(byte[] b)
throws java.security.SignatureException
java.security.SignatureExceptionpublic void update(byte[] b,
int off,
int len)
throws java.security.SignatureException
java.security.SignatureExceptionpublic PGPOnePassSignature generateOnePassVersion(boolean isNested) throws PGPException
isNested - PGPExceptionpublic PGPSignature generate() throws PGPException, java.security.SignatureException
PGPExceptionjava.security.SignatureException