Class PgpSignatoryFactory
java.lang.Object
org.gradle.plugins.signing.signatory.pgp.PgpSignatoryFactory
Creates
PgpSignatory instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSignatory(String name, String keyId, File keyRing, String password) createSignatory(String name, org.bouncycastle.openpgp.PGPSecretKey secretKey, String password) createSignatory(Project project) createSignatory(Project project, boolean required) createSignatory(Project project, String propertyPrefix) createSignatory(Project project, String propertyPrefix, boolean required) Creates aPgpSignatorynamednamebased on the private key with idkeyIdstored in the ASCII-armoredkeywithpasswordpassword.createSignatory(Project project, String propertyPrefix, String name) createSignatory(Project project, String propertyPrefix, String name, boolean required) Creates aPgpSignatorynamednamebased on the private key with idkeyIdstored in the key ring filekeyRingwithpasswordpassword.protected ObjectgetQualifiedPropertyName(String propertyPrefix, String name) protected PgpKeyIdnormalizeKeyId(String keyId) protected PgpSignatoryreadProperties(Project project, String prefix, String name) protected PgpSignatoryreadProperties(Project project, String prefix, String name, boolean required) protected org.bouncycastle.openpgp.PGPSecretKeyreadSecretKey(InputStream input, String keyId, String sourceDescription) org.bouncycastle.openpgp.PGPSecretKeyreadSecretKey(String keyId, File file) protected org.bouncycastle.openpgp.PGPSecretKeyreadSecretKey(org.bouncycastle.openpgp.PGPSecretKeyRingCollection keyRings, PgpKeyId keyId, String sourceDescription)
-
Constructor Details
-
PgpSignatoryFactory
public PgpSignatoryFactory()
-
-
Method Details
-
createSignatory
-
createSignatory
-
createSignatory
-
createSignatory
-
createSignatory
public PgpSignatory createSignatory(Project project, String propertyPrefix, String name, boolean required) -
createSignatory
-
createSignatory
-
createSignatory
public PgpSignatory createSignatory(String name, org.bouncycastle.openpgp.PGPSecretKey secretKey, String password) -
createSignatory
@Incubating public PgpSignatory createSignatory(Project project, String name, String keyId, File keyRing, String password) Creates aPgpSignatorynamednamebased on the private key with idkeyIdstored in the key ring filekeyRingwithpasswordpassword.In most cases, you want to use
SigningExtensionto create signatories instead of this method.- Parameters:
project- the project to which the signing plugin has been appliedname- the name for the signatorykeyId- the key id to look it up in the keyringkeyRing- the keyring filepassword- the password for the private key- Returns:
- the signatory instance
- Since:
- 9.5.0
-
createSignatory
@Incubating public PgpSignatory createSignatory(Project project, String name, @Nullable String keyId, String key, String password) Creates aPgpSignatorynamednamebased on the private key with idkeyIdstored in the ASCII-armoredkeywithpasswordpassword.In most cases, you want to use
SigningExtensionto create signatories instead of this method.- Parameters:
project- the project to which the signing plugin has been appliedname- the name for the signatorykeyId- 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 keypassword- the password for the private key- Returns:
- the signatory instance
- Since:
- 9.5.0
-
readProperties
-
readSecretKey
-
readSecretKey
protected org.bouncycastle.openpgp.PGPSecretKey readSecretKey(InputStream input, String keyId, String sourceDescription) -
readSecretKey
-
normalizeKeyId
-
readProperties
protected PgpSignatory readProperties(Project project, String prefix, String name, boolean required) -
getQualifiedPropertyName
-