Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD

## org.gradle.plugins.signing.signatory.pgp
[Groovy] Class PgpSignatory

    java.lang.Object
      org.gradle.plugins.signing.signatory.SignatorySupport
          org.gradle.plugins.signing.signatory.pgp.PgpSignatory

    class PgpSignatory
    extends SignatorySupport

Property Summary
`java.lang.String` | `name`

Constructor Summary
`PgpSignatory(java.lang.String name, org.bouncycastle.openpgp.PGPSecretKey secretKey, java.lang.String password)`

Method Summary
`org.bouncycastle.openpgp.PGPSignatureGenerator` | `createSignatureGenerator()`
`PgpKeyId` | `getKeyId()`
`void` | `sign(java.io.InputStream toSign, java.io.OutputStream signatureDestination)` Exhausts `toSign`, and writes the signature to `signatureDestination`.

Methods inherited from class SignatorySupport
sign

Methods inherited from class java.lang.Object
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()

Property Detail

### name

    final java.lang.String name

Constructor Detail

### PgpSignatory

    PgpSignatory(java.lang.String name, org.bouncycastle.openpgp.PGPSecretKey secretKey, java.lang.String password)

Method Detail

### createSignatureGenerator

    org.bouncycastle.openpgp.PGPSignatureGenerator createSignatureGenerator()

### getKeyId

    PgpKeyId getKeyId()

### sign

    void sign(java.io.InputStream toSign, java.io.OutputStream signatureDestination)

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

Groovy Documentation