org.apache.commons.openpgp
Interface OpenPgpStreamingSigner
- BouncyCastleOpenPgpStreamingSigner
public interface OpenPgpStreamingSigner
An interface for updating an OpenPGP signature on the fly with streaming data.
byte[] | finish() - Finish creating the signature.
|
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 byte[] finish()
throws OpenPgpException,
IOException
Finish creating 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