api / org.gradle.plugins.signing.signatory.pgp / PgpSignatory

PgpSignatory

open class PgpSignatory : SignatorySupport

PGP signatory from PGP key and password.

Constructors

<init>

PgpSignatory(name: String, secretKey: PGPSecretKey, password: String)

Functions

createSignatureGenerator

open fun createSignatureGenerator(): PGPSignatureGenerator

getKeyId

open fun getKeyId(): String

getName

fun getName(): String

sign

open fun sign(toSign: InputStream, signatureDestination: OutputStream): Unit

Exhausts toSign, and writes the signature to signatureDestination. The caller is responsible for closing the streams, though the output WILL be flushed.

Inherited Functions

sign

open fun sign(toSign: InputStream): ByteArray