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.

PgpSignatory

PGP signatory from PGP key and password.

Since

1.0

Constructors

Link copied to clipboard
constructor(name: String, secretKey: PGPSecretKey, password: String)
Creates a new PgpSignatory.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun createSignatureGenerator(): PGPSignatureGenerator
Create signature generator.
Link copied to clipboard
open fun getKeyId(): String
Returns the id of the key that will be used for signing.
Link copied to clipboard
open fun sign(toSign: InputStream): Array<Byte>
Exhausts toSign, and returns the raw signature bytes.
open fun sign(toSign: InputStream, signatureDestination: OutputStream)
Exhausts toSign, and writes the signature to signatureDestination.