Package: org.gradle.plugins.signing.signatory.pgp

## [Groovy] Class PgpSignatory

- org.gradle.plugins.signing.signatory.pgp.PgpSignatory

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `String` | `name`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `PgpSignatory (String name, PGPSecretKey secretKey, String password)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `PGPSignatureGenerator` | `createSignatureGenerator()`
    `PgpKeyId` | `getKeyId()`
    `void` | `sign(InputStream toSign, OutputStream signatureDestination)` Exhausts `toSign`, and writes the signature to `signatureDestination`.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class SignatorySupport` | `sign`

- - ### Property Detail

    - #### final String name

  - ### Constructor Detail

    - #### PgpSignatory(String name, PGPSecretKey secretKey, String password)

  - ### Method Detail

    - #### PGPSignatureGenerator createSignatureGenerator()

    - #### PgpKeyId getKeyId()

    - #### void sign(InputStream toSign, OutputStream signatureDestination)

      Exhausts `toSign`, and writes the signature to `signatureDestination`. The caller is responsible for closing the streams, though the output WILL be flushed.