java.io.Closeable
, java.lang.AutoCloseable
, ExternalSigningSupport
public class SigningSupport extends java.lang.Object implements ExternalSigningSupport, java.io.Closeable
Constructor | Description |
---|---|
SigningSupport(COSWriter cosWriter) |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
java.io.InputStream |
getContent() |
Get PDF content to be signed.
|
void |
setSignature(byte[] signature) |
Set CMS signature bytes to PDF.
|
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 occured during PDF writingpublic void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
java.io.IOException
Copyright © 2002–2018. All rights reserved.