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.

Since

1.0

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
Add build dependencies to this signature.
Link copied to clipboard
open fun generate()
Generates the signature file.
Link copied to clipboard
Get the build dependencies of this signature.
Link copied to clipboard
open fun getFile(): File
The file for the generated signature, which may not yet exist.
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
Return if this signature should be published.
Link copied to clipboard
open fun toString(): String