PgpSignatory, SignatorySupportpublic interface Signatory
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getKeyId() |
Returns the id of the key that will be used for signing.
|
java.lang.String |
getName() |
An identifying name for this signatory.
|
byte[] |
sign(java.io.InputStream toSign) |
Exhausts
toSign, and returns the raw signature bytes. |
void |
sign(java.io.InputStream toSign,
java.io.OutputStream destination) |
Exhausts
toSign, and writes the signature to signatureDestination. |
@Internal 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, 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 tobyte[] sign(java.io.InputStream toSign)
toSign, and returns the raw signature bytes.toSign - The source of the data to be signed