|
Bouncy Castle Cryptography Library 1.84 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.openpgp.PGPDefaultSignatureGenerator
org.bouncycastle.openpgp.PGPV3SignatureGenerator
Generator for old style PGP V3 Signatures.
| Field Summary | |
protected byte |
lastb
|
protected java.io.OutputStream |
sigOut
|
protected int |
sigType
|
protected int |
version
|
| Constructor Summary | |
PGPV3SignatureGenerator(PGPContentSignerBuilder contentSignerBuilder)
Create a signature generator built on the passed in contentSignerBuilder. |
|
| Method Summary | |
protected void |
blockUpdate(byte[] block,
int off,
int len)
|
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. |
protected void |
getAttributesHash(PGPUserAttributeSubpacketVector userAttributes)
|
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)
|
protected void |
updateWithIdData(int header,
byte[] idBytes)
|
protected void |
updateWithPublicKey(PGPPublicKey key)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected byte lastb
protected java.io.OutputStream sigOut
protected int sigType
protected final int version
| Constructor Detail |
public PGPV3SignatureGenerator(PGPContentSignerBuilder contentSignerBuilder)
contentSignerBuilder - builder to produce PGPContentSigner objects for generating signatures.| Method Detail |
public void init(int signatureType,
PGPPrivateKey key)
throws PGPException
signatureType - key -
PGPException
public PGPOnePassSignature generateOnePassVersion(boolean isNested)
throws PGPException
isNested -
PGPException
public PGPSignature generate()
throws PGPException
PGPExceptionpublic void update(byte b)
public void update(byte[] b)
public void update(byte[] b,
int off,
int len)
protected void blockUpdate(byte[] block,
int off,
int len)
protected void updateWithIdData(int header,
byte[] idBytes)
protected void updateWithPublicKey(PGPPublicKey key)
throws PGPException
PGPException
protected void getAttributesHash(PGPUserAttributeSubpacketVector userAttributes)
throws PGPException
PGPException
|
Bouncy Castle Cryptography Library 1.84 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||