public class BouncyCastleOpenPgpSigner extends java.lang.Object implements OpenPgpSigner
ROLE| Constructor and Description |
|---|
BouncyCastleOpenPgpSigner() |
| Modifier and Type | Method and Description |
|---|---|
void |
detachedSign(java.io.InputStream data,
java.io.OutputStream signature,
java.lang.String keyId,
KeyRing keyRing,
boolean asciiArmor)
Sign a piece of data with the given key, storing the signature in a detached output.
|
void |
sign(java.io.InputStream data,
java.io.OutputStream signedOutput,
java.lang.String keyId,
KeyRing keyRing,
boolean asciiArmor)
Sign a piece of data with the given key.
|
public void sign(java.io.InputStream data,
java.io.OutputStream signedOutput,
java.lang.String keyId,
KeyRing keyRing,
boolean asciiArmor)
throws OpenPgpException
OpenPgpSignersign in interface OpenPgpSignerdata - the data to signsignedOutput - the signed output datakeyId - the key ID of the key used to sign itkeyRing - the keyring containing the key aboveasciiArmor - whether to ascii armor the outputOpenPgpExceptionpublic void detachedSign(java.io.InputStream data,
java.io.OutputStream signature,
java.lang.String keyId,
KeyRing keyRing,
boolean asciiArmor)
throws OpenPgpException,
java.io.IOException
OpenPgpSignerdetachedSign in interface OpenPgpSignerdata - the data to signsignature - the detached signaturekeyId - the key ID of the key used to sign itkeyRing - the keyring containing the key aboveasciiArmor - whether to ascii armor the outputOpenPgpExceptionjava.io.IOException