Class PgpSignatoryInternal
java.lang.Object
org.gradle.plugins.signing.signatory.SignatorySupport
org.gradle.plugins.signing.signatory.pgp.PgpSignatory
org.gradle.plugins.signing.signatory.pgp.PgpSignatoryInternal
- All Implemented Interfaces:
Signatory
This is an implementation of PgpSignatory that uses
PgpSignatoryService to cache computed keys.-
Constructor Summary
ConstructorsConstructorDescriptionPgpSignatoryInternal(Provider<org.gradle.plugins.signing.signatory.internal.pgp.PgpSignatoryService> signatoryService, String name, Provider<org.bouncycastle.openpgp.PGPSecretKey> secretKey, Provider<org.bouncycastle.openpgp.PGPPrivateKey> privateKey) -
Method Summary
Modifier and TypeMethodDescriptionProvider<org.gradle.plugins.signing.signatory.internal.pgp.PgpSignatoryService> A reference to the signatory service to adhere to the contract ofTask.usesService(Provider).voidsign(InputStream toSign, OutputStream signatureDestination) ExhauststoSign, and writes the signature tosignatureDestination.Methods inherited from class org.gradle.plugins.signing.signatory.pgp.PgpSignatory
createSignatureGenerator, getKeyId, getNameMethods inherited from class org.gradle.plugins.signing.signatory.SignatorySupport
sign
-
Constructor Details
-
PgpSignatoryInternal
-
-
Method Details
-
getSignatoryService
@ServiceReference public Provider<org.gradle.plugins.signing.signatory.internal.pgp.PgpSignatoryService> getSignatoryService()A reference to the signatory service to adhere to the contract ofTask.usesService(Provider). The service is used as a base of secretKey and privateKey providers. -
sign
Description copied from class:PgpSignatoryExhauststoSign, and writes the signature tosignatureDestination. The caller is responsible for closing the streams, though the output WILL be flushed.- Specified by:
signin interfaceSignatory- Overrides:
signin classPgpSignatory- Parameters:
toSign- The source of the data to be signedsignatureDestination- Where the signature will be written to
-