Class PgpSignatoryFactory
java.lang.Object
org.gradle.plugins.signing.signatory.pgp.PgpSignatoryFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSignatory(String name, String keyId, File keyRing, String password) Create signatory.createSignatory(String name, org.bouncycastle.openpgp.PGPSecretKey secretKey, String password) Create signatory.createSignatory(Project project) Create signatory.createSignatory(Project project, boolean required) Create signatory.createSignatory(Project project, String propertyPrefix) Create signatory.createSignatory(Project project, String propertyPrefix, boolean required) Create signatory.Creates aPgpSignatorynamednamebased on the private key with idkeyIdstored in the ASCII-armoredkeywithpasswordpassword.createSignatory(Project project, String propertyPrefix, String name) Create signatory.createSignatory(Project project, String propertyPrefix, String name, boolean required) Create signatory.Creates aPgpSignatorynamednamebased on the private key with idkeyIdstored in the key ring filekeyRingwithpasswordpassword.protected ObjectgetQualifiedPropertyName(String propertyPrefix, String name) Returns the qualified property name.protected PgpKeyIdnormalizeKeyId(String keyId) Normalize key id.protected PgpSignatoryreadProperties(Project project, String prefix, String name) Read properties.protected PgpSignatoryreadProperties(Project project, String prefix, String name, boolean required) Read properties.protected org.bouncycastle.openpgp.PGPSecretKeyreadSecretKey(InputStream input, String keyId, String sourceDescription) Read secret key.org.bouncycastle.openpgp.PGPSecretKeyreadSecretKey(String keyId, File file) Read secret key.protected org.bouncycastle.openpgp.PGPSecretKeyreadSecretKey(org.bouncycastle.openpgp.PGPSecretKeyRingCollection keyRings, PgpKeyId keyId, String sourceDescription) Read secret key.
-
Constructor Details
-
PgpSignatoryFactory
public PgpSignatoryFactory()
-
-
Method Details
-
createSignatory
-
createSignatory
-
createSignatory
Create signatory.- Since:
- 1.0
-
createSignatory
Create signatory.- Since:
- 1.0
-
createSignatory
public PgpSignatory createSignatory(Project project, String propertyPrefix, String name, boolean required) Create signatory.- Since:
- 1.0
-
createSignatory
Create signatory.- Since:
- 1.0
-
createSignatory
Create signatory.- Since:
- 1.0
-
createSignatory
public PgpSignatory createSignatory(String name, org.bouncycastle.openpgp.PGPSecretKey secretKey, String password) Create signatory.- Since:
- 1.0
-
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
Read properties.- Since:
- 1.0
-
readSecretKey
-
readSecretKey
protected org.bouncycastle.openpgp.PGPSecretKey readSecretKey(InputStream input, String keyId, String sourceDescription) Read secret key.- Since:
- 1.0
-
readSecretKey
-
normalizeKeyId
-
readProperties
protected PgpSignatory readProperties(Project project, String prefix, String name, boolean required) Read properties.- Since:
- 1.0
-
getQualifiedPropertyName
-