SignOperation

A sign operation creates digital signatures for one or more files or publish artifacts.

The external representation of the signature is specified by the signature type property, while the signatory property specifies who is to sign.

A sign operation manages one or more Signature objects. The sign methods are used to register things to generate signatures for. The execute method generates the signatures for all of the registered items at that time.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
The signatory to the generated digital signatures.
Link copied to clipboard
Link copied to clipboard
The file representation of the signature(s).

Functions

Link copied to clipboard
open fun configure(closure: Closure): SignOperation
Executes the given closure against this object.
Link copied to clipboard
Generates actual signature files for all of the registered signatures.
Link copied to clipboard
Link copied to clipboard
All of the files that will be signed by this operation.
Link copied to clipboard
abstract fun getSignatory(): Signatory
Link copied to clipboard
All of the signature files that will be generated by this operation.
Link copied to clipboard
Link copied to clipboard
Returns the single registered signature.
Link copied to clipboard
open fun isRequired(): Boolean
Link copied to clipboard
open fun setRequired(required: Boolean)
Link copied to clipboard
abstract fun setSignatory(signatory: Signatory)
Link copied to clipboard
abstract fun setSignatureType(type: SignatureType)
Link copied to clipboard
open fun sign(files: Array<File>): SignOperation
Registers signatures for the given files.
open fun sign(artifacts: Array<PublishArtifact>): SignOperation
Registers signatures for the given artifacts.
open fun sign(classifier: String, files: Array<File>): SignOperation
Registers signatures (with the given classifier) for the given files
Link copied to clipboard
open fun signatory(signatory: Signatory): SignOperation
Change the signatory for signature generation.
Link copied to clipboard
Change the signature type for signature generation.
Link copied to clipboard
open fun toString(): String