Interface PdfSignatureDictionary

All Known Implementing Classes:
PdfSigDictWrapper

public interface PdfSignatureDictionary
Contains PDF signature dictionary information
  • Method Details

    • getByteRange

      ByteRange getByteRange()
      Gets the signed/timestamped ByteRange
      Returns:
      ByteRange
    • getSignerName

      String getSignerName()
      Gets name of the signed
      Returns:
      String
    • getLocation

      String getLocation()
      Gets the signer's location
      Returns:
      String
    • getContactInfo

      String getContactInfo()
      Gets the signer's contact info
      Returns:
      String
    • getReason

      String getReason()
      Gets the signing reason
      Returns:
      String
    • getType

      String getType()
      Gets type of the dictionary
      Returns:
      String
    • getFilter

      String getFilter()
      Gets the Filter value
      Returns:
      String
    • getSubFilter

      String getSubFilter()
      Gets the SubFilter value
      Returns:
      String
    • getCMSSignedData

      org.bouncycastle.cms.CMSSignedData getCMSSignedData()
      Gets the CMSSignedData from /Contents
      Returns:
      CMSSignedData
    • getContents

      byte[] getContents()
      Gets /Contents binaries (CMSSignedData)
      Returns:
      /Contents binaries
    • getSigningDate

      Date getSigningDate()
      Gets the claimed signing time
      Returns:
      Date
    • getDocMDP

      Returns a /DocMDP dictionary, when present
      Returns:
      CertificationPermission
    • getFieldMDP

      SigFieldPermissions getFieldMDP()
      Returns a /FieldMDP dictionary, when present
      Returns:
      SigFieldPermissions
    • checkConsistency

      boolean checkConsistency(PdfSignatureDictionary signatureDictionary)
      Verifies the equality of the current PdfSignatureDictionary with provided signatureDictionary. NOTE: this method is similar to equals(PdfSignatureDictionary) method, but also modifies the state of the object accessible from isConsistent() method. If none signature dictionary found in the signed revision, NULL may be provided.
      Parameters:
      signatureDictionary - PdfSignatureDictionary to compare with
      Returns:
      TRUE if the PdfSignatureDictionary is equal to the provided signatureDictionary, FALSE otherwise
    • isConsistent

      boolean isConsistent()
      Checks if the signature dictionary is consistent. NOTE: method checkConsistency(PdfSignatureDictionary) shall be executed before!
      Returns:
      TRUE if the PdfSignatureDictionary is consistent, FALSE otherwise