Top Description Methods
org.apache.pdfbox.pdmodel.interactive.digitalsignature

public Interface ExternalSigningSupport

Known Direct Implementers
org.apache.pdfbox.pdmodel.interactive.digitalsignature.SigningSupport
Imports
java.io.IOException, .InputStream

Interface 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

Modifier and TypeMethod and Description
public InputStream

Returns:

content stream
getContent
()

Get PDF content to be signed.

public void
setSignature(byte[]
CMS signature as byte array
signature
)

Set CMS signature bytes to PDF.

Method Detail

getContentback to summary
public InputStream getContent() throws IOException

Get PDF content to be signed. Obtained InputStream must be closed after use.

Returns:InputStream

content stream

Exceptions
IOException:
if the content could not be read
setSignatureback to summary
public void setSignature(byte[] signature) throws IOException

Set CMS signature bytes to PDF.

Parameters
signature:byte[]

CMS signature as byte array

Exceptions
IOException:
if exception occurred during PDF writing