Top Description Fields Constructors Methods
org.bouncycastle.openpgp

public Class PGPV3SignatureGenerator

extends PGPDefaultSignatureGenerator
Class Inheritance
Imports
java.io.ByteArrayOutputStream, java.math.BigInteger, java.util.Date, org.bouncycastle.bcpg.MPInteger, .OnePassSignaturePacket, .PublicKeyAlgorithmTags, .SignaturePacket, org.bouncycastle.openpgp.operator.PGPContentSigner, .PGPContentSignerBuilder

Generator for old style PGP V3 Signatures.

Field Summary

Modifier and TypeField and Description
private PGPContentSigner
private PGPContentSignerBuilder
Inherited from org.bouncycastle.openpgp.PGPDefaultSignatureGenerator:
lastbsigOutsigTypeversion

Constructor Summary

AccessConstructor and Description
public
PGPV3SignatureGenerator(PGPContentSignerBuilder
builder to produce PGPContentSigner objects for generating signatures.
contentSignerBuilder
)

Create a signature generator built on the passed in contentSignerBuilder.

Method Summary

Modifier and TypeMethod and Description
public PGPSignature

Returns:

PGPSignature
generate
()

Return a V3 signature object containing the current signature state.

public PGPOnePassSignature

Returns:

PGPOnePassSignature
generateOnePassVersion
(boolean isNested)

Return the one pass header associated with the current signature.

public void
init(int signatureType, PGPPrivateKey key)

Initialise the generator for signing.

Inherited from org.bouncycastle.openpgp.PGPDefaultSignatureGenerator:
blockUpdategetAttributesHashupdateupdateupdateupdateWithIdDataupdateWithPublicKey

Field Detail

contentSignerback to summary
private PGPContentSigner contentSigner
contentSignerBuilderback to summary
private PGPContentSignerBuilder contentSignerBuilder

Constructor Detail

PGPV3SignatureGeneratorback to summary
public PGPV3SignatureGenerator(PGPContentSignerBuilder contentSignerBuilder)

Create a signature generator built on the passed in contentSignerBuilder.

Parameters
contentSignerBuilder:PGPContentSignerBuilder

builder to produce PGPContentSigner objects for generating signatures.

Method Detail

generateback to summary
public PGPSignature generate() throws PGPException

Return a V3 signature object containing the current signature state.

Returns:PGPSignature

PGPSignature

generateOnePassVersionback to summary
public PGPOnePassSignature generateOnePassVersion(boolean isNested) throws PGPException

Return the one pass header associated with the current signature.

Returns:PGPOnePassSignature

PGPOnePassSignature

initback to summary
public void init(int signatureType, PGPPrivateKey key) throws PGPException

Initialise the generator for signing.