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
ConstructorsModifierConstructorDescriptionprotectedPdfCMSRevision(PdfSignatureDictionary signatureDictionary, List<PdfSignatureField> signatureFields, DSSDocument signedContent, boolean coverAllOriginalBytes) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets of the all PDF's content is signedGets the signed byte rangeorg.bouncycastle.cms.CMSSignedDataGets 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 the bytes of the signature revisionGets the claimed signing timevoidsetModificationDetection(PdfModificationDetection modificationDetection) Sets thePdfModificationDetectionresult
-
Constructor Details
-
PdfCMSRevision
protected PdfCMSRevision(PdfSignatureDictionary signatureDictionary, List<PdfSignatureField> signatureFields, DSSDocument signedContent, boolean coverAllOriginalBytes) Default constructor- Parameters:
signatureDictionary- The signature dictionarysignatureFields- the list ofPdfSignatureFieldssignedContent-DSSDocumentthe signed contentcoverAllOriginalBytes- true if the signature covers all original bytes
-
-
Method Details
-
getSignedData
Gets the bytes of the signature revision- Returns:
- byte array
-
getPdfSigDictInfo
Description copied from interface:PdfRevisionReturns a PDF Signature Dictionary info container- Specified by:
getPdfSigDictInfoin interfacePdfRevision- Returns:
PdfSignatureDictionary
-
getByteRange
Gets the signed byte range- Returns:
ByteRange
-
getSigningDate
Gets the claimed signing time- Returns:
Date
-
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:PdfRevisionReturns a list of signature fields that refer the current object- Specified by:
getFieldsin interfacePdfRevision- Returns:
- list of
PdfSignatureFields
-
getCMSSignedData
public org.bouncycastle.cms.CMSSignedData getCMSSignedData()Gets the CMSSignedData- Returns:
CMSSignedData
-
getModificationDetection
Description copied from interface:PdfRevisionReturns an information about changes made in the document- Specified by:
getModificationDetectionin interfacePdfRevision- Returns:
PdfModificationDetection
-
setModificationDetection
Sets thePdfModificationDetectionresult- Parameters:
modificationDetection-PdfModificationDetection
-