Class PgpSignatory
java.lang.Object
org.gradle.plugins.signing.signatory.SignatorySupport
org.gradle.plugins.signing.signatory.pgp.PgpSignatory
- All Implemented Interfaces:
- Signatory
PGP signatory from PGP key and password.
- 
Constructor SummaryConstructorsConstructorDescriptionPgpSignatory(String name, org.bouncycastle.openpgp.PGPSecretKey secretKey, String password) 
- 
Method SummaryModifier and TypeMethodDescriptionorg.bouncycastle.openpgp.PGPSignatureGeneratorgetKeyId()Returns the id of the key that will be used for signing.final StringgetName()An identifying name for this signatory.voidsign(InputStream toSign, OutputStream signatureDestination) ExhauststoSign, and writes the signature tosignatureDestination.Methods inherited from class org.gradle.plugins.signing.signatory.SignatorySupportsign
- 
Constructor Details- 
PgpSignatory
 
- 
- 
Method Details- 
getNameDescription copied from interface:SignatoryAn identifying name for this signatory. The name must be constant for the life of the signatory and should uniquely identify it within a project. 
- 
signExhauststoSign, and writes the signature tosignatureDestination. The caller is responsible for closing the streams, though the output WILL be flushed.- Parameters:
- toSign- The source of the data to be signed
- signatureDestination- Where the signature will be written to
 
- 
getKeyIdDescription copied from interface:SignatoryReturns the id of the key that will be used for signing.- Returns:
- The key id
 
- 
createSignatureGeneratorpublic org.bouncycastle.openpgp.PGPSignatureGenerator createSignatureGenerator()
 
-