Package eu.europa.esig.dss.pdf
Class PdfCMSRevision
java.lang.Object
eu.europa.esig.dss.pdf.PdfCMSRevision
- All Implemented Interfaces:
PdfRevision
,Serializable
- Direct Known Subclasses:
PdfDocTimestampRevision
,PdfSignatureRevision
Defines a PDF revision containing a CMS data (signature/timestamp)
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
PdfCMSRevision
(PdfSignatureDictionary signatureDictionary, List<PdfSignatureField> signatureFields, DSSDocument signedContent, DSSDocument previousRevision, boolean coverAllOriginalBytes) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets of the all PDF's content is signedGets the signed byte rangeorg.bouncycastle.cms.CMSSignedData
Gets the CMSSignedDataReturns a list of signature fields that refer the current objectReturns an information about changes made in the documentReturns a PDF Signature Dictionary info containerGets PDF revision preceding to the current signature revisionGets the current signature revisionGets the claimed signing timevoid
setModificationDetection
(PdfModificationDetection modificationDetection) Sets thePdfModificationDetection
result
-
Constructor Details
-
PdfCMSRevision
protected PdfCMSRevision(PdfSignatureDictionary signatureDictionary, List<PdfSignatureField> signatureFields, DSSDocument signedContent, DSSDocument previousRevision, boolean coverAllOriginalBytes) Default constructor- Parameters:
signatureDictionary
- The signature dictionarysignatureFields
- the list ofPdfSignatureField
ssignedContent
-DSSDocument
the signed contentpreviousRevision
-DSSDocument
the originally signed PDF revision (before signature)coverAllOriginalBytes
- true if the signature covers all original bytes
-
-
Method Details
-
getSignedData
-
getPreviousRevision
Gets PDF revision preceding to the current signature revision- Returns:
DSSDocument
-
getPdfSigDictInfo
Description copied from interface:PdfRevision
Returns a PDF Signature Dictionary info container- Specified by:
getPdfSigDictInfo
in interfacePdfRevision
- Returns:
PdfSignatureDictionary
-
getByteRange
-
getSigningDate
-
areAllOriginalBytesCovered
public boolean areAllOriginalBytesCovered()Gets of the all PDF's content is signed- Returns:
- TRUE if the whole PDF is signed, FALSE otherwise
-
getFields
Description copied from interface:PdfRevision
Returns a list of signature fields that refer the current object- Specified by:
getFields
in interfacePdfRevision
- Returns:
- list of
PdfSignatureField
s
-
getCMSSignedData
public org.bouncycastle.cms.CMSSignedData getCMSSignedData()Gets the CMSSignedData- Returns:
CMSSignedData
-
getModificationDetection
Description copied from interface:PdfRevision
Returns an information about changes made in the document- Specified by:
getModificationDetection
in interfacePdfRevision
- Returns:
PdfModificationDetection
-
setModificationDetection
Sets thePdfModificationDetection
result- Parameters:
modificationDetection
-PdfModificationDetection
-