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
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
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
-