For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

Signatory

interface Signatory(source)

A signatory is an object capable of providing a signature for an arbitrary stream of bytes.

Since

1.0

Inheritors

Functions

Link copied to clipboard
abstract fun getKeyId(): String
Returns the id of the key that will be used for signing.
Link copied to clipboard
abstract fun getName(): String
An identifying name for this signatory.
Link copied to clipboard
abstract fun sign(toSign: InputStream): Array<Byte>
Exhausts toSign, and returns the raw signature bytes.
abstract fun sign(toSign: InputStream, destination: OutputStream)
Exhausts toSign, and writes the signature to signatureDestination.