public class BouncyCastleOpenPgpStreamingSigner extends java.lang.Object implements OpenPgpStreamingSigner
ROLE
Constructor and Description |
---|
BouncyCastleOpenPgpStreamingSigner(java.io.OutputStream signature,
java.lang.String keyId,
KeyRing keyRing,
boolean asciiArmor) |
BouncyCastleOpenPgpStreamingSigner(java.lang.String keyId,
KeyRing keyRing,
boolean asciiArmor) |
Modifier and Type | Method and Description |
---|---|
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.
|
public BouncyCastleOpenPgpStreamingSigner(java.lang.String keyId, KeyRing keyRing, boolean asciiArmor) throws OpenPgpException
OpenPgpException
public BouncyCastleOpenPgpStreamingSigner(java.io.OutputStream signature, java.lang.String keyId, KeyRing keyRing, boolean asciiArmor) throws OpenPgpException
OpenPgpException
public void update(byte[] buf) throws OpenPgpException
OpenPgpStreamingSigner
update
in interface OpenPgpStreamingSigner
buf
- the bufferOpenPgpException
- if the buffer is not valid for updating the signaturepublic void update(byte[] buf, int offset, int length) throws OpenPgpException
OpenPgpStreamingSigner
update
in interface OpenPgpStreamingSigner
buf
- the bufferoffset
- offset within the buffer to start fromlength
- number of bytes in the buffer to read fromOpenPgpException
- if the buffer is not valid for updating the signaturepublic byte[] finish() throws OpenPgpException, java.io.IOException
OpenPgpStreamingSigner
finish
in interface OpenPgpStreamingSigner
OpenPgpException
- if the signature is not in a consistent or complete statejava.io.IOException