createSignatory

open fun createSignatory(project: Project, required: Boolean): PgpSignatory
open fun createSignatory(project: Project, propertyPrefix: String, required: Boolean): PgpSignatory
open fun createSignatory(project: Project, propertyPrefix: String): PgpSignatory
open fun createSignatory(project: Project, propertyPrefix: String, name: String, required: Boolean): PgpSignatory
open fun createSignatory(project: Project, propertyPrefix: String, name: String): PgpSignatory
open fun createSignatory(name: String, keyId: String, keyRing: File, password: String): PgpSignatory
open fun createSignatory(name: String, secretKey: PGPSecretKey, password: String): PgpSignatory


open fun createSignatory(project: Project, name: String, keyId: String, keyRing: File, password: String): PgpSignatory

Creates a PgpSignatory named name based on the private key with id keyId stored in the key ring file keyRing with password password.

In most cases, you want to use SigningExtension to create signatories instead of this method.

Return

the signatory instance

Since

9.5.0

Parameters

project

the project to which the signing plugin has been applied

name

the name for the signatory

keyId

the key id to look it up in the keyring

keyRing

the keyring file

password

the password for the private key


open fun createSignatory(project: Project, name: String, @Nullable keyId: @Nullable String, key: String, password: String): PgpSignatory

Creates a PgpSignatory named name based on the private key with id keyId stored in the ASCII-armored key with password password.

In most cases, you want to use SigningExtension to create signatories instead of this method.

Return

the signatory instance

Since

9.5.0

Parameters

project

the project to which the signing plugin has been applied

name

the name for the signatory

keyId

the key id to look it up in the keyring (optional if keyring contains only one master key, and it should be used)

key

the ASCII-armored key

password

the password for the private key