org.bouncycastle.openpgp
Class PGPOnePassSignature
java.lang.Objectorg.bouncycastle.openpgp.PGPOnePassSignature
public class PGPOnePassSignature
extends java.lang.Object
A one pass signature object.
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.
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.