org.gradle.plugins.signing.signatory

## Class SignatorySupport

- java.lang.Object
- - groovy.lang.GroovyObjectSupport
  - - org.gradle.plugins.signing.signatory.SignatorySupport

- All Implemented Interfaces:
    GroovyObject, Signatory
  Direct Known Subclasses:
    PgpSignatory

      public abstract class SignatorySupport
      extends GroovyObjectSupport
      implements Signatory

  Convenience base class for `Signatory` implementations.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SignatorySupport()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `sign(InputStream toSign)` Exhausts `toSign`, and returns the raw signature bytes.

    - ### Methods inherited from class groovy.lang.GroovyObjectSupport

      `getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty`

    - ### Methods inherited from class java.lang.Object

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

    - ### Methods inherited from interface org.gradle.plugins.signing.signatory.Signatory

      `getName, sign`

- - ### Constructor Detail

    - #### SignatorySupport

          public SignatorySupport()

  - ### Method Detail

    - #### sign

          public byte[] sign(InputStream toSign)

      Description copied from interface: `Signatory`
      Exhausts `toSign`, and returns the raw signature bytes.
      Specified by:
        `sign` in interface `Signatory`
      Parameters:
        `toSign` - The source of the data to be signed
      Returns:
        The raw bytes of the signature