public class PGPOnePassSignature extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
encode(OutputStream outStream) |
byte[] |
getEncoded() |
int |
getHashAlgorithm() |
int |
getKeyAlgorithm() |
long |
getKeyID() |
int |
getSignatureType() |
void |
initVerify(PGPPublicKey pubKey,
Provider provider)
Initialise the signature object for verification.
|
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.
|
public void initVerify(PGPPublicKey pubKey, String provider) throws NoSuchProviderException, PGPException
pubKey - provider - NoSuchProviderExceptionPGPExceptionpublic void initVerify(PGPPublicKey pubKey, Provider provider) throws PGPException
pubKey - provider - PGPExceptionpublic void update(byte b)
throws SignatureException
SignatureExceptionpublic void update(byte[] bytes)
throws SignatureException
SignatureExceptionpublic void update(byte[] bytes,
int off,
int length)
throws SignatureException
SignatureExceptionpublic boolean verify(PGPSignature pgpSig) throws PGPException, SignatureException
pgpSig - PGPExceptionSignatureExceptionpublic long getKeyID()
public int getSignatureType()
public int getHashAlgorithm()
public int getKeyAlgorithm()
public byte[] getEncoded()
throws IOException
IOExceptionpublic void encode(OutputStream outStream) throws IOException
IOException