Interface ExternalSigningSupport
-
- All Known Implementing Classes:
SigningSupport
public interface ExternalSigningSupportInterface for external signature creation scenarios. It contains method for retrieving PDF data to be sign and setting created CMS signature to the PDF.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStreamgetContent()Get PDF content to be signed.voidsetSignature(byte[] signature)Set CMS signature bytes to PDF.
-
-
-
Method Detail
-
getContent
java.io.InputStream getContent() throws java.io.IOExceptionGet PDF content to be signed. Obtained InputStream must be closed after use.- Returns:
- content stream
- Throws:
java.io.IOException- if something went wrong
-
setSignature
void setSignature(byte[] signature) throws java.io.IOExceptionSet CMS signature bytes to PDF.- Parameters:
signature- CMS signature as byte array- Throws:
java.io.IOException- if exception occurred during PDF writing
-
-