public class SigningSupport extends Object implements ExternalSigningSupport, Closeable
| Constructor and Description |
|---|
SigningSupport(COSWriter cosWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
getContent()
Get PDF content to be signed.
|
void |
setSignature(byte[] signature)
Set CMS signature bytes to PDF.
|
public SigningSupport(COSWriter cosWriter)
public InputStream getContent() throws IOException
ExternalSigningSupportgetContent in interface ExternalSigningSupportIOExceptionpublic void setSignature(byte[] signature)
throws IOException
ExternalSigningSupportsetSignature in interface ExternalSigningSupportsignature - CMS signature as byte arrayIOException - if exception occured during PDF writingpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.