Interface PdfSignatureDictionary
- All Known Implementing Classes:
PdfSigDictWrapper
public interface PdfSignatureDictionary
Contains PDF signature dictionary information
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkConsistency
(PdfSignatureDictionary signatureDictionary) Verifies the equality of the current PdfSignatureDictionary with providedsignatureDictionary
.Gets the signed/timestamped ByteRangeorg.bouncycastle.cms.CMSSignedData
Gets the CMSSignedData from /ContentsGets the signer's contact infobyte[]
Gets /Contents binaries (CMSSignedData)Returns a /DocMDP dictionary, when presentReturns a /FieldMDP dictionary, when presentGets the Filter valueGets the signer's locationGets the signing reasonGets name of the signedGets the claimed signing timeGets the SubFilter valuegetType()
Gets type of the dictionaryboolean
Checks if the signature dictionary is consistent.
-
Method Details
-
getByteRange
-
getSignerName
-
getLocation
-
getContactInfo
-
getReason
-
getType
-
getFilter
-
getSubFilter
-
getCMSSignedData
org.bouncycastle.cms.CMSSignedData getCMSSignedData()Gets the CMSSignedData from /Contents- Returns:
CMSSignedData
-
getContents
byte[] getContents()Gets /Contents binaries (CMSSignedData)- Returns:
- /Contents binaries
-
getSigningDate
-
getDocMDP
CertificationPermission getDocMDP()Returns a /DocMDP dictionary, when present- Returns:
CertificationPermission
-
getFieldMDP
SigFieldPermissions getFieldMDP()Returns a /FieldMDP dictionary, when present- Returns:
SigFieldPermissions
-
checkConsistency
Verifies the equality of the current PdfSignatureDictionary with providedsignatureDictionary
. NOTE: this method is similar toequals(PdfSignatureDictionary)
method, but also modifies the state of the object accessible fromisConsistent()
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 providedsignatureDictionary
, FALSE otherwise
-
isConsistent
boolean isConsistent()Checks if the signature dictionary is consistent. NOTE: methodcheckConsistency(PdfSignatureDictionary)
shall be executed before!- Returns:
- TRUE if the
PdfSignatureDictionary
is consistent, FALSE otherwise
-