A signatory is an object capable of providing a signature for an arbitrary stream of bytes.
| Type | Name and description |
|---|---|
String |
getName() |
void |
sign(InputStream toSign, OutputStream destination)Exhausts toSign, and writes the signature to signatureDestination. |
byte[] |
sign(InputStream toSign)Exhausts toSign, and returns the raw signature bytes. |
An identifying name for this signatory.
The name must be constant for the life of the signatory and should uniquely identify it within a project.
Exhausts toSign, and writes the signature to signatureDestination. The caller is responsible for closing the streams, though the output WILL be flushed.
toSign - The source of the data to be signeddestination - Where the signature will be written to Exhausts toSign, and returns the raw signature bytes.
toSign - The source of the data to be signed