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 protectedPdfCMSRevision(PdfSignatureDictionary signatureDictionary, List<String> signatureFieldNames, byte[] signedContent, boolean coverAllOriginalBytes) -
Method Summary
Modifier and Type Method Description booleanareAllOriginalBytesCovered()ByteRangegetByteRange()org.bouncycastle.cms.CMSSignedDatagetCMSSignedData()List<String>getFieldNames()Returns a list of signature field names that refer the current objectPdfSignatureDictionarygetPdfSigDictInfo()Returns a PDF Signature Dictionary info containerbyte[]getRevisionCoveredBytes()DategetSigningDate()
-
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-DSSDocumentthe 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:PdfRevisionReturns a PDF Signature Dictionary info container- Specified by:
getPdfSigDictInfoin interfacePdfRevision- Returns:
PdfSignatureDictionary
-
getByteRange
-
getSigningDate
-
areAllOriginalBytesCovered
public boolean areAllOriginalBytesCovered() -
getFieldNames
Description copied from interface:PdfRevisionReturns a list of signature field names that refer the current object- Specified by:
getFieldNamesin interfacePdfRevision- Returns:
- list of
Stringfield names
-
getCMSSignedData
public org.bouncycastle.cms.CMSSignedData getCMSSignedData()
-