@License public class PDFSigner extends Signer
| Modifier and Type | Class and Description |
|---|---|
static class |
PDFSigner.Mode |
alias, encapsulate, keyring, provider| Constructor and Description |
|---|
PDFSigner(String alias,
KeyRing keyring,
Provider provider) |
PDFSigner(String alias,
KeyRing keyring,
Provider provider,
PDFSigner.Mode mode)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
sign(byte[] data)
Signs the given set of data.
|
void |
sign(InputStream input,
OutputStream output)
Signs the given set of data; the caller must make sure both input and
output stream are properly closed once the processing is complete.
|
isEncapsulateData, setEncapsulateDatapublic PDFSigner(String alias, KeyRing keyring, Provider provider) throws GeneralSecurityException, CryptoException
public PDFSigner(String alias, KeyRing keyring, Provider provider, PDFSigner.Mode mode) throws GeneralSecurityException, CryptoException
public byte[] sign(byte[] data)
throws CryptoException
Signersign in class Signerdata - the data to be signed.CryptoExceptionpublic void sign(InputStream input, OutputStream output) throws CryptoException
Signersign in class Signerinput - the stream providing the data to be signed, as an input stream.output - a stream to write to.CryptoExceptionCopyright © 2012-2014 Andrea Funtò. See here for terms and conditions.