Interface PDFBoxSignatureInterface

All Superinterfaces:
org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureInterface
All Known Implementing Classes:
DefaultPDFBoxSignatureInterface

public interface PDFBoxSignatureInterface extends org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureInterface
The interface for the signature generation interface. This interface extends the PDFBox SignatureInterface. The purpose of this interface is to provide the functions to provide the CMS signature data for a PDF signature.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Gets the signed attributes from the result of the signing process.
    byte[]
    Gets the result of the signing process in the form of ContentInfo holding SignedData.
    boolean
    Tells whether the signature should be generated according to the PAdES requirement profile.

    Methods inherited from interface org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureInterface

    sign
  • Method Details

    • getCmsSignedData

      byte[] getCmsSignedData()
      Gets the result of the signing process in the form of ContentInfo holding SignedData.
      Returns:
      the CMS ContentInfo holding SignedData
    • getCmsSignedAttributes

      byte[] getCmsSignedAttributes()
      Gets the signed attributes from the result of the signing process.
      Returns:
      the CMS SignedAttributes
    • isPades

      boolean isPades()
      Tells whether the signature should be generated according to the PAdES requirement profile.
      Returns:
      true if the signature is created as a PAdES compliant signature