open class Signature : AbstractPublishArtifact
A digital signature file artifact.
A signature file is always generated from another file, which may be a PublishArtifact.
Signature(toSign: PublishArtifact, signatureSpec: SignatureSpec, vararg tasks: Any)
Creates a signature artifact for the given public artifact. The file to sign will be the file of the given artifact and the classifier of this signature artifact will default to the classifier of the given artifact to sign. The artifact to sign may change after being used as the source for this signature. Signature(toSign: File, signatureSpec: SignatureSpec, vararg tasks: Any)
Creates a signature artifact for the given file. Signature(toSign: File, classifier: String, signatureSpec: SignatureSpec, vararg tasks: Any)
Creates a signature artifact for the given file, with the given classifier. Signature(toSign: Closure<File>, classifier: Closure<String>, signatureSpec: SignatureSpec, vararg tasks: Any) Signature(toSign: Callable<File>, classifier: Callable<String>, signatureSpec: SignatureSpec, vararg tasks: Any)
Creates a signature artifact for the file returned by the The closures will be “evaluated” on demand whenever the value is needed (e.g. at generation time) |
open fun generate(): Unit
Generates the signature file. In order to generate the signature, the |
|
open fun getClassifier(): String
The classifier of the signature artifact. Defaults to the classifier of the source artifact (if signing an artifact) or the given classifier at construction (if given). |
|
open fun getDate(): Date
The date of the signature artifact. Defaults to the last modified time of the |
|
open fun getExtension(): String
The extension of the signature artifact. Defaults to the specified file extension of the |
|
open fun getFile(): File
The file for the generated signature, which may not yet exist. The file will be placed alongside the |
|
open fun getName(): String
The name of the signature artifact. Defaults to the name of the signature |
|
open fun getSignatory(): Signatory
The signatory of this signature file. |
|
open fun getSignatureSpec(): SignatureSpec |
|
open fun getSignatureType(): SignatureType
The file representation type of the signature. |
|
open fun getToSign(): File
The file that is to be signed. |
|
fun getToSignArtifact(): PublishArtifact
Get the artifact that this signature is for, if available. |
|
open fun getType(): String
The type of the signature artifact. Defaults to the extension of the |
|
open fun setClassifier(classifier: String): Unit |
|
open fun setDate(date: Date): Unit |
|
open fun setExtension(extension: String): Unit |
|
open fun setFile(file: File): Unit
Set the file for the generated signature. |
|
open fun setName(name: String): Unit |
|
open fun setSignatureSpec(signatureSpec: SignatureSpec): Unit |
|
open fun setType(type: String): Unit |