public class SigningSupport extends java.lang.Object implements ExternalSigningSupport, java.io.Closeable
Constructor and Description |
---|
SigningSupport(COSWriter cosWriter) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.io.InputStream |
getContent()
Get PDF content to be signed.
|
void |
setSignature(byte[] signature)
Set CMS signature bytes to PDF.
|
private COSWriter cosWriter
public SigningSupport(COSWriter cosWriter)
public java.io.InputStream getContent() throws java.io.IOException
ExternalSigningSupport
getContent
in interface ExternalSigningSupport
java.io.IOException
- if something went wrongpublic void setSignature(byte[] signature) throws java.io.IOException
ExternalSigningSupport
setSignature
in interface ExternalSigningSupport
signature
- CMS signature as byte arrayjava.io.IOException
- if exception occurred during PDF writingpublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException