Package eu.europa.esig.dss.pdf
Class PdfSigDictWrapper
java.lang.Object
eu.europa.esig.dss.pdf.PdfSigDictWrapper
- All Implemented Interfaces:
PdfSignatureDictionary
The default implementation of
PdfSignatureDictionary-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckConsistency(PdfSignatureDictionary signatureDictionary) Verifies the equality of the current PdfSignatureDictionary with providedsignatureDictionary.Gets the signed/timestamped ByteRangeorg.bouncycastle.cms.CMSSignedDataGets 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 dictionarybooleanChecks if the signature dictionary is consistent.
-
Constructor Details
-
PdfSigDictWrapper
-
-
Method Details
-
getSignerName
Description copied from interface:PdfSignatureDictionaryGets name of the signed- Specified by:
getSignerNamein interfacePdfSignatureDictionary- Returns:
String
-
getContactInfo
Description copied from interface:PdfSignatureDictionaryGets the signer's contact info- Specified by:
getContactInfoin interfacePdfSignatureDictionary- Returns:
String
-
getReason
Description copied from interface:PdfSignatureDictionaryGets the signing reason- Specified by:
getReasonin interfacePdfSignatureDictionary- Returns:
String
-
getLocation
Description copied from interface:PdfSignatureDictionaryGets the signer's location- Specified by:
getLocationin interfacePdfSignatureDictionary- Returns:
String
-
getSigningDate
Description copied from interface:PdfSignatureDictionaryGets the claimed signing time- Specified by:
getSigningDatein interfacePdfSignatureDictionary- Returns:
Date
-
getType
Description copied from interface:PdfSignatureDictionaryGets type of the dictionary- Specified by:
getTypein interfacePdfSignatureDictionary- Returns:
String
-
getFilter
Description copied from interface:PdfSignatureDictionaryGets the Filter value- Specified by:
getFilterin interfacePdfSignatureDictionary- Returns:
String
-
getSubFilter
Description copied from interface:PdfSignatureDictionaryGets the SubFilter value- Specified by:
getSubFilterin interfacePdfSignatureDictionary- Returns:
String
-
getCMSSignedData
public org.bouncycastle.cms.CMSSignedData getCMSSignedData()Description copied from interface:PdfSignatureDictionaryGets the CMSSignedData from /Contents- Specified by:
getCMSSignedDatain interfacePdfSignatureDictionary- Returns:
CMSSignedData
-
getContents
public byte[] getContents()Description copied from interface:PdfSignatureDictionaryGets /Contents binaries (CMSSignedData)- Specified by:
getContentsin interfacePdfSignatureDictionary- Returns:
- /Contents binaries
-
getByteRange
Description copied from interface:PdfSignatureDictionaryGets the signed/timestamped ByteRange- Specified by:
getByteRangein interfacePdfSignatureDictionary- Returns:
ByteRange
-
getDocMDP
Description copied from interface:PdfSignatureDictionaryReturns a /DocMDP dictionary, when present- Specified by:
getDocMDPin interfacePdfSignatureDictionary- Returns:
CertificationPermission
-
getFieldMDP
Description copied from interface:PdfSignatureDictionaryReturns a /FieldMDP dictionary, when present- Specified by:
getFieldMDPin interfacePdfSignatureDictionary- Returns:
SigFieldPermissions
-
checkConsistency
Description copied from interface:PdfSignatureDictionaryVerifies 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.- Specified by:
checkConsistencyin interfacePdfSignatureDictionary- Parameters:
signatureDictionary-PdfSignatureDictionaryto compare with- Returns:
- TRUE if the
PdfSignatureDictionaryis equal to the providedsignatureDictionary, FALSE otherwise
-
isConsistent
public boolean isConsistent()Description copied from interface:PdfSignatureDictionaryChecks if the signature dictionary is consistent. NOTE: methodcheckConsistency(PdfSignatureDictionary)shall be executed before!- Specified by:
isConsistentin interfacePdfSignatureDictionary- Returns:
- TRUE if the
PdfSignatureDictionaryis consistent, FALSE otherwise
-