|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
interface Signatory
A signatory is an object capable of providing a signature for an arbitrary stream of bytes.
| Method Summary | |
|---|---|
java.lang.String
|
getName()
|
void
|
sign(java.io.InputStream toSign, java.io.OutputStream destination)
Exhausts toSign, and writes the signature to signatureDestination. |
byte[]
|
sign(java.io.InputStream toSign)
Exhausts toSign, and returns the raw signature bytes. |
| Method Detail |
|---|
java.lang.String getName()
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.
void sign(java.io.InputStream toSign, java.io.OutputStream destination)
toSign - The source of the data to be signeddestination - Where the signature will be written to
byte[] sign(java.io.InputStream toSign)
toSign - The source of the data to be signed
Groovy Documentation