open class SignOperation : SignatureSpec
A sign operation creates digital signatures for one or more files or PublishArtifact.
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.
SignOperation()
A sign operation creates digital signatures for one or more files or PublishArtifact. The external representation of the signature is specified by the A sign operation manages one or more Signature objects. The |
open fun configure(closure: Closure<Any>): SignOperation
Executes the given closure against this object. |
|
open fun execute(): SignOperation
Generates actual signature files for all of the registered signatures. The signatures are generated with the configuration they have at this time, which includes the signature type and signatory of this operation at this time. This method can be called multiple times, with the signatures being generated with their current configuration each time. |
|
open fun getDisplayName(): String |
|
open fun getFilesToSign(): FileCollection
All of the files that will be signed by this operation. |
|
open fun getSignatory(): Signatory |
|
open fun getSignatureFiles(): FileCollection
All of the signature files that will be generated by this operation. |
|
open fun getSignatureType(): SignatureType |
|
open fun getSignatures(): MutableList<Signature>
The registered signatures. |
|
open fun getSingleSignature(): Signature
Returns the single registered signature. |
|
open fun isRequired(): Boolean |
|
open fun setRequired(required: Boolean): Unit |
|
open fun setSignatory(signatory: Signatory): Unit |
|
open fun setSignatureType(signatureType: SignatureType): Unit |
|
open fun sign(vararg artifacts: PublishArtifact): SignOperation
Registers signatures for the given artifacts. open fun sign(vararg files: File): SignOperation
Registers signatures for the given files. open fun sign(classifier: String, vararg files: File): SignOperation
Registers signatures (with the given classifier) for the given files |
|
open fun signatory(signatory: Signatory): SignOperation
Change the signatory for signature generation. |
|
open fun signatureType(type: SignatureType): SignOperation
Change the signature type for signature generation. |
|
open fun toString(): String |