public class PGPOnePassSignature
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
encode(java.io.OutputStream outStream) |
byte[] |
getEncoded() |
int |
getHashAlgorithm() |
int |
getKeyAlgorithm() |
long |
getKeyID() |
int |
getSignatureType() |
void |
init(PGPContentVerifierBuilderProvider verifierBuilderProvider,
PGPPublicKey pubKey)
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 init(PGPContentVerifierBuilderProvider verifierBuilderProvider, PGPPublicKey pubKey) throws PGPException
verifierBuilderProvider
- provider for a content verifier builder for the signature type of interest.pubKey
- the public key to use for verificationPGPException
- if there's an issue with creating the verifier.public void update(byte b)
public void update(byte[] bytes)
public void update(byte[] bytes, int off, int length)
public boolean verify(PGPSignature pgpSig) throws PGPException
pgpSig
- PGPException
public long getKeyID()
public int getSignatureType()
public int getHashAlgorithm()
public int getKeyAlgorithm()
public byte[] getEncoded() throws java.io.IOException
java.io.IOException
public void encode(java.io.OutputStream outStream) throws java.io.IOException
java.io.IOException