public class PgpSignatory extends SignatorySupport
| Constructor and Description |
|---|
PgpSignatory(java.lang.String name,
org.bouncycastle.openpgp.PGPSecretKey secretKey,
java.lang.String password) |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.openpgp.PGPSignatureGenerator |
createSignatureGenerator() |
PgpKeyId |
getKeyId() |
java.lang.String |
getName()
An identifying name for this signatory.
|
void |
sign(java.io.InputStream toSign,
java.io.OutputStream signatureDestination)
Exhausts
toSign, and writes the signature to signatureDestination. |
signpublic PgpSignatory(java.lang.String name,
org.bouncycastle.openpgp.PGPSecretKey secretKey,
java.lang.String password)
public PgpKeyId getKeyId()
public final java.lang.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(java.io.InputStream toSign,
java.io.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()