org.bouncycastle.openpgp

Class PGPOnePassSignature

public class PGPOnePassSignature extends Object

A one pass signature object.
Method Summary
voidencode(OutputStream outStream)
byte[]getEncoded()
intgetHashAlgorithm()
intgetKeyAlgorithm()
longgetKeyID()
intgetSignatureType()
voidinitVerify(PGPPublicKey pubKey, String provider)
Initialise the signature object for verification.
voidupdate(byte b)
voidupdate(byte[] bytes)
voidupdate(byte[] bytes, int off, int length)
booleanverify(PGPSignature pgpSig)
Verify the calculated signature against the passed in PGPSignature.

Method Detail

encode

public void encode(OutputStream outStream)

getEncoded

public byte[] getEncoded()

getHashAlgorithm

public int getHashAlgorithm()

getKeyAlgorithm

public int getKeyAlgorithm()

getKeyID

public long getKeyID()

getSignatureType

public int getSignatureType()

initVerify

public void initVerify(PGPPublicKey pubKey, String provider)
Initialise the signature object for verification.

Parameters: pubKey provider

Throws: NoSuchProviderException PGPException

update

public void update(byte b)

update

public void update(byte[] bytes)

update

public void update(byte[] bytes, int off, int length)

verify

public boolean verify(PGPSignature pgpSig)
Verify the calculated signature against the passed in PGPSignature.

Parameters: pgpSig

Returns: boolean

Throws: PGPException SignatureException