|
Bouncy Castle Cryptography 1.51 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.openpgp.PGPSignatureGenerator
public class PGPSignatureGenerator
Generator for PGP Signatures.
| Constructor Summary | |
|---|---|
PGPSignatureGenerator(PGPContentSignerBuilder contentSignerBuilder)
Create a signature generator built on the passed in contentSignerBuilder. |
|
| Method Summary | |
|---|---|
PGPSignature |
generate()
Return a signature object containing the current signature state. |
PGPSignature |
generateCertification(PGPPublicKey pubKey)
Generate a certification, such as a revocation, for the passed in key. |
PGPSignature |
generateCertification(PGPPublicKey masterKey,
PGPPublicKey pubKey)
Generate a certification for the passed in key against the passed in master key. |
PGPSignature |
generateCertification(PGPUserAttributeSubpacketVector userAttributes,
PGPPublicKey pubKey)
Generate a certification for the passed in userAttributes |
PGPSignature |
generateCertification(java.lang.String id,
PGPPublicKey pubKey)
Generate a certification for the passed in id and key. |
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 |
setHashedSubpackets(PGPSignatureSubpacketVector hashedPcks)
|
void |
setUnhashedSubpackets(PGPSignatureSubpacketVector unhashedPcks)
|
void |
update(byte b)
|
void |
update(byte[] b)
|
void |
update(byte[] b,
int off,
int len)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PGPSignatureGenerator(PGPContentSignerBuilder contentSignerBuilder)
contentSignerBuilder - builder to produce PGPContentSigner objects for generating signatures.| Method Detail |
|---|
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 void setHashedSubpackets(PGPSignatureSubpacketVector hashedPcks)
public void setUnhashedSubpackets(PGPSignatureSubpacketVector unhashedPcks)
public PGPOnePassSignature generateOnePassVersion(boolean isNested)
throws PGPException
isNested -
PGPException
public PGPSignature generate()
throws PGPException
PGPException
public PGPSignature generateCertification(java.lang.String id,
PGPPublicKey pubKey)
throws PGPException
id - the id we are certifying against the public key.pubKey - the key we are certifying against the id.
PGPException
public PGPSignature generateCertification(PGPUserAttributeSubpacketVector userAttributes,
PGPPublicKey pubKey)
throws PGPException
userAttributes - the id we are certifying against the public key.pubKey - the key we are certifying against the id.
PGPException
public PGPSignature generateCertification(PGPPublicKey masterKey,
PGPPublicKey pubKey)
throws PGPException
masterKey - the key we are certifying against.pubKey - the key we are certifying.
PGPException
public PGPSignature generateCertification(PGPPublicKey pubKey)
throws PGPException
pubKey - the key we are certifying.
PGPException
|
Bouncy Castle Cryptography 1.51 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||