public class PgpSignatory extends SignatorySupport
| Constructor and Description | 
|---|
| PgpSignatory(String name,
            org.bouncycastle.openpgp.PGPSecretKey secretKey,
            String password) | 
| Modifier and Type | Method and Description | 
|---|---|
| org.bouncycastle.openpgp.PGPSignatureGenerator | createSignatureGenerator() | 
| PgpKeyId | getKeyId() | 
| String | getName()An identifying name for this signatory. | 
| void | sign(InputStream toSign,
    OutputStream signatureDestination)Exhausts  toSign, and writes the signature tosignatureDestination. | 
signpublic PgpKeyId getKeyId()
public final String getName()
SignatoryAn identifying name for this signatory.
The name must be constant for the life of the signatory and should uniquely identify it within a project.
public void sign(InputStream toSign, OutputStream signatureDestination)
toSign, and writes the signature to signatureDestination.
 The caller is responsible for closing the streams, though the output WILL be flushed.toSign - The source of the data to be signedsignatureDestination - Where the signature will be written topublic org.bouncycastle.openpgp.PGPSignatureGenerator createSignatureGenerator()