org.bouncycastle.openpgp

Class PGPOnePassSignature


public class PGPOnePassSignature
extends java.lang.Object

A one pass signature object.

Method Summary

void
encode(OutputStream outStream)
byte[]
getEncoded()
long
getKeyID()
int
getSignatureType()
void
initVerify(PGPPublicKey pubKey, String provider)
Initialise the signature object for verification.
void
update(byte b)
void
update(byte[] bytes)
void
update(byte[] bytes, int off, int length)
boolean
verify(PGPSignature pgpSig)
Verify the calculated signature against the passed in PGPSignature.

Method Details

encode

public void encode(OutputStream outStream)
            throws IOException


getEncoded

public byte[] getEncoded()
            throws IOException


getKeyID

public long getKeyID()


getSignatureType

public int getSignatureType()


initVerify

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

Parameters:
pubKey -
provider -

Throws:
PGPException -


update

public void update(byte b)
            throws SignatureException


update

public void update(byte[] bytes)
            throws SignatureException


update

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


verify

public boolean verify(PGPSignature pgpSig)
            throws PGPException,
                   SignatureException
Verify the calculated signature against the passed in PGPSignature.

Parameters:
pgpSig -

Returns:
boolean

Throws:
PGPException -