Package eu.europa.esig.dss.pdf
Class PdfCMSRevision
java.lang.Object
eu.europa.esig.dss.pdf.PdfCMSRevision
- All Implemented Interfaces:
PdfRevision
- Direct Known Subclasses:
PdfDocTimestampRevision
,PdfSignatureRevision
public abstract class PdfCMSRevision extends Object implements PdfRevision
-
Constructor Summary
Constructors Modifier Constructor Description protected
PdfCMSRevision(PdfSignatureDictionary signatureDictionary, List<String> signatureFieldNames, byte[] signedContent, boolean coverAllOriginalBytes)
-
Method Summary
Modifier and Type Method Description boolean
areAllOriginalBytesCovered()
ByteRange
getByteRange()
org.bouncycastle.cms.CMSSignedData
getCMSSignedData()
List<String>
getFieldNames()
Returns a list of signature field names that refer the current objectPdfSignatureDictionary
getPdfSigDictInfo()
Returns a PDF Signature Dictionary info containerbyte[]
getRevisionCoveredBytes()
Date
getSigningDate()
-
Constructor Details
-
PdfCMSRevision
protected PdfCMSRevision(PdfSignatureDictionary signatureDictionary, List<String> signatureFieldNames, byte[] signedContent, boolean coverAllOriginalBytes)- Parameters:
signatureDictionary
- The signature dictionarysignatureFieldNames
- the list of signature field namessignedContent
-DSSDocument
the signed contentcoverAllOriginalBytes
- true if the signature covers all original bytes
-
-
Method Details
-
getRevisionCoveredBytes
public byte[] getRevisionCoveredBytes()- Returns:
- the byte of the originally signed document
-
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() -
getFieldNames
Description copied from interface:PdfRevision
Returns a list of signature field names that refer the current object- Specified by:
getFieldNames
in interfacePdfRevision
- Returns:
- list of
String
field names
-
getCMSSignedData
public org.bouncycastle.cms.CMSSignedData getCMSSignedData()
-