# Class Signature.Generator

java.lang.Object
org.gradle.plugins.signing.Signature.Generator

Enclosing class:
  `Signature`

@Incubating public static class Signature.Generator extends Object
Configuration-cache compatible signature generator.

Since:
  8.1

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Generator(SignatureType signatureType, Signatory signatory, File toSign)`
  Creates a new `Generator`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `generate()`
  Generate.
  `File`
  `getFile()`
  Returns the file.
  `File`
  `getToSign()`
  Returns the to sign.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Generator

    public Generator(SignatureType signatureType, Signatory signatory, File toSign)
    Creates a new `Generator`.
    Since:
      8.1

- ## Method Details

  - ### getToSign

    @PathSensitive(NONE) @InputFile public File getToSign()
    Returns the to sign.
    Since:
      8.1

  - ### getFile

    @OutputFile public File getFile()
    Returns the file.
    Since:
      8.1

  - ### generate

    public void generate()
    Generate.
    Since:
      8.1