org.apache.commons.openpgp
Interface OpenPgpStreamingSignatureVerifier
- BouncyCastleOpenPgpStreamingSignatureVerifier
public interface OpenPgpStreamingSignatureVerifier
An interface for updating an OpenPGP signature on the fly with streaming data.
SignatureStatus | finish() - Finish and verify the signature that has been obtained.
|
void | update(byte[] buf) - Update the signature with the next block from the data buffer.
|
void | update(byte[] buf, int offset, int length) - Update the signature with the next block from the data buffer.
|
ROLE
public static final String ROLE
finish
public SignatureStatus finish()
throws OpenPgpException,
IOException
Finish and verify the signature that has been obtained.
- the status of the signature
update
public void update(byte[] buf)
throws OpenPgpException
Update the signature with the next block from the data buffer.
update
public void update(byte[] buf,
int offset,
int length)
throws OpenPgpException
Update the signature with the next block from the data buffer.
buf
- the bufferoffset
- offset within the buffer to start fromlength
- number of bytes in the buffer to read from