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
OpenPgpExceptionpublic BouncyCastleOpenPgpStreamingSigner(java.io.OutputStream signature,
java.lang.String keyId,
KeyRing keyRing,
boolean asciiArmor)
throws OpenPgpException
OpenPgpExceptionpublic void update(byte[] buf)
throws OpenPgpException
OpenPgpStreamingSignerupdate in interface OpenPgpStreamingSignerbuf - the bufferOpenPgpException - if the buffer is not valid for updating the signaturepublic void update(byte[] buf,
int offset,
int length)
throws OpenPgpException
OpenPgpStreamingSignerupdate in interface OpenPgpStreamingSignerbuf - 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
OpenPgpStreamingSignerfinish in interface OpenPgpStreamingSignerOpenPgpException - if the signature is not in a consistent or complete statejava.io.IOException