Package org.gradle.plugins.signing.type
Class AbstractSignatureType
java.lang.Object
org.gradle.plugins.signing.type.AbstractSignatureType
- All Implemented Interfaces:
- SignatureType
- Direct Known Subclasses:
- ArmoredSignatureType,- BinarySignatureType
Convenience base class for 
SignatureType implementations.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncombinedExtension(File toSign) Combines the extension of the given file with the expected signature extension.Calculates the file where to store the signature of the given file to be signed.Signs the given file and returns the file where the signature has been written to.voidsign(Signatory signatory, InputStream toSign, OutputStream destination) Signs the data from the given InputStream and stores the signature in the given OutputStream.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.plugins.signing.type.SignatureTypegetExtension
- 
Constructor Details- 
AbstractSignatureTypepublic AbstractSignatureType()
 
- 
- 
Method Details- 
signDescription copied from interface:SignatureTypeSigns the given file and returns the file where the signature has been written to.- Specified by:
- signin interface- SignatureType
- Parameters:
- signatory- The signatory
- toSign- The file to be signed
- Returns:
- The file where the signature has been written to
 
- 
signDescription copied from interface:SignatureTypeSigns the data from the given InputStream and stores the signature in the given OutputStream.- Specified by:
- signin interface- SignatureType
- Parameters:
- signatory- The signatory
- toSign- The source of the data to be signed
- destination- Where the signature will be written to
 
- 
fileForDescription copied from interface:SignatureTypeCalculates the file where to store the signature of the given file to be signed.- Specified by:
- fileForin interface- SignatureType
- Parameters:
- toSign- The file to be signed
- Returns:
- The file where to write the signature of the given file to be signed
 
- 
combinedExtensionDescription copied from interface:SignatureTypeCombines the extension of the given file with the expected signature extension.- Specified by:
- combinedExtensionin interface- SignatureType
- Parameters:
- toSign- The file to be signed
- Returns:
- The combined file extension (without the leading dot)
- See Also:
 
 
-