com.spire.pdf.interactive.digitalsignatures
Class PdfPKCS7Formatter

java.lang.Object
  extended by com.spire.pdf.interactive.digitalsignatures.PdfPKCS7Formatter
All Implemented Interfaces:
IPdfSignatureFormatter

public class PdfPKCS7Formatter
extends java.lang.Object
implements IPdfSignatureFormatter

Pdf pkcs7 signature implementation.


Constructor Summary
PdfPKCS7Formatter(PdfCertificate certificate, boolean encapsulate)
          Construct a new instance.
 
Method Summary
 PdfSignatureProperties getProperties()
          Get the signature properties.
 void setOCSPService(IOCSPService value)
          Set the service which generate OCSP response.
 void setTimestampService(ITSAService value)
          Set the provider which generate timestamp token.
 
Methods inherited from interface com.spire.pdf.interactive.digitalsignatures.IPdfSignatureFormatter
sign
 

Constructor Detail

PdfPKCS7Formatter

public PdfPKCS7Formatter(PdfCertificate certificate,
                         boolean encapsulate)
Construct a new instance.

Parameters:
certificate - The signing certificate.
encapsulate - if encapsulate is true a copy of the message will be included in the signature.
Method Detail

getProperties

public PdfSignatureProperties getProperties()
Get the signature properties.

Specified by:
getProperties in interface IPdfSignatureFormatter
Returns:
The signature properties.

setOCSPService

public void setOCSPService(IOCSPService value)
Set the service which generate OCSP response.

Parameters:
value - The service which generate OCSP response.

setTimestampService

public void setTimestampService(ITSAService value)
Set the provider which generate timestamp token.

Parameters:
value - The provider which generate timestamp token.