api / org.gradle.plugins.signing.type / SignatureType

SignatureType

interface SignatureType

The type of signature.

Functions

combinedExtension

abstract fun combinedExtension(toSign: File): String

Combines the extension of the given file with the expected signature extension.

fileFor

abstract fun fileFor(toSign: File): File

Calculates the file where to store the signature of the given file to be signed.

getExtension

abstract fun getExtension(): String

The file extension (without the leading dot) associated to this type of signature.

sign

abstract fun sign(signatory: Signatory, toSign: File): File

Signs the given file and returns the file where the signature has been written to.

abstract fun sign(signatory: Signatory, toSign: InputStream, destination: OutputStream): Unit

Signs the data from the given InputStream and stores the signature in the given OutputStream.

Inheritors

AbstractSignatureType

abstract class AbstractSignatureType : SignatureType

Convenience base class for SignatureType implementations.