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
-
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.
-
Constructor Details
-
PdfSigDictWrapper
-
-
Method Details
-
getSignerName
Description copied from interface:PdfSignatureDictionary
Gets name of the signed- Specified by:
getSignerName
in interfacePdfSignatureDictionary
- Returns:
String
-
getContactInfo
Description copied from interface:PdfSignatureDictionary
Gets the signer's contact info- Specified by:
getContactInfo
in interfacePdfSignatureDictionary
- Returns:
String
-
getReason
Description copied from interface:PdfSignatureDictionary
Gets the signing reason- Specified by:
getReason
in interfacePdfSignatureDictionary
- Returns:
String
-
getLocation
Description copied from interface:PdfSignatureDictionary
Gets the signer's location- Specified by:
getLocation
in interfacePdfSignatureDictionary
- Returns:
String
-
getSigningDate
Description copied from interface:PdfSignatureDictionary
Gets the claimed signing time- Specified by:
getSigningDate
in interfacePdfSignatureDictionary
- Returns:
Date
-
getType
Description copied from interface:PdfSignatureDictionary
Gets type of the dictionary- Specified by:
getType
in interfacePdfSignatureDictionary
- Returns:
String
-
getFilter
Description copied from interface:PdfSignatureDictionary
Gets the Filter value- Specified by:
getFilter
in interfacePdfSignatureDictionary
- Returns:
String
-
getSubFilter
Description copied from interface:PdfSignatureDictionary
Gets the SubFilter value- Specified by:
getSubFilter
in interfacePdfSignatureDictionary
- Returns:
String
-
getCMSSignedData
public org.bouncycastle.cms.CMSSignedData getCMSSignedData()Description copied from interface:PdfSignatureDictionary
Gets the CMSSignedData from /Contents- Specified by:
getCMSSignedData
in interfacePdfSignatureDictionary
- Returns:
CMSSignedData
-
getContents
public byte[] getContents()Description copied from interface:PdfSignatureDictionary
Gets /Contents binaries (CMSSignedData)- Specified by:
getContents
in interfacePdfSignatureDictionary
- Returns:
- /Contents binaries
-
getByteRange
Description copied from interface:PdfSignatureDictionary
Gets the signed/timestamped ByteRange- Specified by:
getByteRange
in interfacePdfSignatureDictionary
- Returns:
ByteRange
-
getDocMDP
Description copied from interface:PdfSignatureDictionary
Returns a /DocMDP dictionary, when present- Specified by:
getDocMDP
in interfacePdfSignatureDictionary
- Returns:
CertificationPermission
-
getFieldMDP
Description copied from interface:PdfSignatureDictionary
Returns a /FieldMDP dictionary, when present- Specified by:
getFieldMDP
in interfacePdfSignatureDictionary
- Returns:
SigFieldPermissions
-
checkConsistency
Description copied from interface:PdfSignatureDictionary
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.- Specified by:
checkConsistency
in interfacePdfSignatureDictionary
- Parameters:
signatureDictionary
-PdfSignatureDictionary
to compare with- Returns:
- TRUE if the
PdfSignatureDictionary
is equal to the providedsignatureDictionary
, FALSE otherwise
-
isConsistent
public boolean isConsistent()Description copied from interface:PdfSignatureDictionary
Checks if the signature dictionary is consistent. NOTE: methodcheckConsistency(PdfSignatureDictionary)
shall be executed before!- Specified by:
isConsistent
in interfacePdfSignatureDictionary
- Returns:
- TRUE if the
PdfSignatureDictionary
is consistent, FALSE otherwise
-