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
ExternalSigningSupport
getContent
in interface ExternalSigningSupport
IOException
public void setSignature(byte[] signature) throws IOException
ExternalSigningSupport
setSignature
in interface ExternalSigningSupport
signature
- CMS signature as byte arrayIOException
- if exception occured during PDF writingpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.