Signature

open class Signature : AbstractPublishArtifact(source)

A digital signature file artifact.

A signature file is always generated from another file, which may be a PublishArtifact.

Constructors

Link copied to clipboard
constructor(toSign: PublishArtifact, signatureSpec: SignatureSpec, tasks: Array<Any>)
Creates a signature artifact for the given public artifact.
constructor(toSign: File, signatureSpec: SignatureSpec, tasks: Array<Any>)
Creates a signature artifact for the given file.
constructor(toSign: File, classifier: String, signatureSpec: SignatureSpec, tasks: Array<Any>)
Creates a signature artifact for the given file, with the given classifier.
constructor(toSign: Closure<File>, classifier: Closure<String>, signatureSpec: SignatureSpec, tasks: Array<Any>)
Creates a signature artifact for the file returned by the toSign closure.
constructor(toSign: Callable<File>, classifier: Callable<String>, signatureSpec: SignatureSpec, tasks: Array<Any>)
Creates a signature artifact for the file returned by the toSign closure.

Types

Link copied to clipboard
Configuration-cache compatible signature generator.

Properties

Link copied to clipboard
open var classifier: String
The classifier of the signature artifact.
Link copied to clipboard
open var date: Date
The date of the signature artifact.
Link copied to clipboard
open var extension: String
The extension of the signature artifact.
Link copied to clipboard
open var name: String
The name of the signature artifact.
Link copied to clipboard
The specification of how to generate the signature.
Link copied to clipboard
open var type: String
The type of the signature artifact.

Functions

Link copied to clipboard
open fun builtBy(tasks: Array<Any>): AbstractPublishArtifact
Link copied to clipboard
open fun generate()
Generates the signature file.
Link copied to clipboard
Link copied to clipboard
abstract fun getClassifier(): String
Link copied to clipboard
abstract fun getDate(): Date
Link copied to clipboard
abstract fun getExtension(): String
Link copied to clipboard
open fun getFile(): File
The file for the generated signature, which may not yet exist.
Link copied to clipboard
abstract fun getName(): String
Link copied to clipboard
@Internal(value = "already tracked as part of the Sign task")
open fun getSignatory(): Signatory
The signatory of this signature file.
Link copied to clipboard
@Internal(value = "already tracked as part of the Sign task")
open fun getSignatureType(): SignatureType
The file representation type of the signature.
Link copied to clipboard
The file that is to be signed.
Link copied to clipboard
abstract fun getType(): String
Link copied to clipboard
Link copied to clipboard
open fun toString(): String