|
Bouncy Castle Cryptography 1.25 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.openpgp.PGPSignatureGenerator
Generator for PGP Signatures.
Constructor Summary | |
PGPSignatureGenerator(int keyAlgorithm,
int hashAlgorithm,
java.lang.String provider)
Create a generator for the passed in keyAlgorithm and hashAlgorithm codes. |
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(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 |
initSign(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(int keyAlgorithm, int hashAlgorithm, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, PGPException
keyAlgorithm
- hashAlgorithm
- provider
- Method Detail |
public void initSign(int signatureType, PGPPrivateKey key) throws PGPException
signatureType
- key
- public void update(byte b) throws java.security.SignatureException
public void update(byte[] b) throws java.security.SignatureException
public void update(byte[] b, int off, int len) throws java.security.SignatureException
public void setHashedSubpackets(PGPSignatureSubpacketVector hashedPcks)
public void setUnhashedSubpackets(PGPSignatureSubpacketVector unhashedPcks)
public PGPOnePassSignature generateOnePassVersion(boolean isNested) throws PGPException
isNested
- public PGPSignature generate() throws PGPException, java.security.SignatureException
public PGPSignature generateCertification(java.lang.String id, PGPPublicKey pubKey) throws java.security.SignatureException, PGPException
id
- the id we are certifying against the public key.pubKey
- the key we are certifying against the id.public PGPSignature generateCertification(PGPPublicKey masterKey, PGPPublicKey pubKey) throws java.security.SignatureException, PGPException
masterKey
- the key we are certifying against.pubKey
- the key we are certifying.public PGPSignature generateCertification(PGPPublicKey pubKey) throws java.security.SignatureException, PGPException
pubKey
- the key we are certifying.
|
Bouncy Castle Cryptography 1.25 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |