Package eu.europa.esig.dss.pdf
Class PdfCMSInfo
- java.lang.Object
-
- eu.europa.esig.dss.pdf.PdfCMSInfo
-
- All Implemented Interfaces:
PdfSignatureOrDocTimestampInfo
- Direct Known Subclasses:
PdfDocTimestampInfo,PdfSignatureInfo
public abstract class PdfCMSInfo extends Object implements PdfSignatureOrDocTimestampInfo
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPdfCMSInfo(PdfSigDict signatureDictionary, PdfDssDict dssDictionary, byte[] cms, byte[] signedContent, boolean coverAllOriginalBytes)
-
Method Summary
Modifier and Type Method Description voidaddOuterSignature(PdfSignatureOrDocTimestampInfo signatureInfo)voidcheckIntegrity()protected abstract voidcheckIntegrityOnce()org.bouncycastle.cms.CMSSignedDatagetCMSSignedData()StringgetContactInfo()byte[]getContents()Returns byte array of decoding the hexadecimal string present within the /Contents dictionaryPdfDssDictgetDssDictionary()StringgetFilter()StringgetLocation()List<PdfSignatureOrDocTimestampInfo>getOuterSignatures()StringgetReason()StringgetSigFieldName()int[]getSignatureByteRange()byte[]getSignedDocumentBytes()StringgetSignerName()DategetSigningDate()StringgetSubFilter()booleanisCoverAllOriginalBytes()StringuniqueId()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface eu.europa.esig.dss.pdf.PdfSignatureOrDocTimestampInfo
isTimestamp
-
-
-
-
Constructor Detail
-
PdfCMSInfo
protected PdfCMSInfo(PdfSigDict signatureDictionary, PdfDssDict dssDictionary, byte[] cms, byte[] signedContent, boolean coverAllOriginalBytes)
- Parameters:
signatureDictionary- The signature dictionarydssDictionary- the DSS dictionarycms- the signature binarysignedContent- the signed contentcoverAllOriginalBytes- true if the signature covers all original bytes
-
-
Method Detail
-
checkIntegrity
public void checkIntegrity()
- Specified by:
checkIntegrityin interfacePdfSignatureOrDocTimestampInfo
-
checkIntegrityOnce
protected abstract void checkIntegrityOnce()
-
getSignedDocumentBytes
public byte[] getSignedDocumentBytes()
- Specified by:
getSignedDocumentBytesin interfacePdfSignatureOrDocTimestampInfo- Returns:
- the byte of the originally signed document
-
getDssDictionary
public PdfDssDict getDssDictionary()
- Specified by:
getDssDictionaryin interfacePdfSignatureOrDocTimestampInfo
-
uniqueId
public String uniqueId()
- Specified by:
uniqueIdin interfacePdfSignatureOrDocTimestampInfo
-
getContents
public byte[] getContents()
Description copied from interface:PdfSignatureOrDocTimestampInfoReturns byte array of decoding the hexadecimal string present within the /Contents dictionary- Specified by:
getContentsin interfacePdfSignatureOrDocTimestampInfo- Returns:
- byte array
-
addOuterSignature
public void addOuterSignature(PdfSignatureOrDocTimestampInfo signatureInfo)
- Specified by:
addOuterSignaturein interfacePdfSignatureOrDocTimestampInfo
-
getOuterSignatures
public List<PdfSignatureOrDocTimestampInfo> getOuterSignatures()
- Specified by:
getOuterSignaturesin interfacePdfSignatureOrDocTimestampInfo- Returns:
- signatures that covers a document that contains this signature
-
getSigFieldName
public String getSigFieldName()
- Specified by:
getSigFieldNamein interfacePdfSignatureOrDocTimestampInfo
-
getSignerName
public String getSignerName()
- Specified by:
getSignerNamein interfacePdfSignatureOrDocTimestampInfo
-
getContactInfo
public String getContactInfo()
- Specified by:
getContactInfoin interfacePdfSignatureOrDocTimestampInfo
-
getReason
public String getReason()
- Specified by:
getReasonin interfacePdfSignatureOrDocTimestampInfo
-
getLocation
public String getLocation()
- Specified by:
getLocationin interfacePdfSignatureOrDocTimestampInfo
-
getSigningDate
public Date getSigningDate()
- Specified by:
getSigningDatein interfacePdfSignatureOrDocTimestampInfo
-
getFilter
public String getFilter()
- Specified by:
getFilterin interfacePdfSignatureOrDocTimestampInfo
-
getSubFilter
public String getSubFilter()
- Specified by:
getSubFilterin interfacePdfSignatureOrDocTimestampInfo
-
getSignatureByteRange
public int[] getSignatureByteRange()
- Specified by:
getSignatureByteRangein interfacePdfSignatureOrDocTimestampInfo
-
getCMSSignedData
public org.bouncycastle.cms.CMSSignedData getCMSSignedData()
- Specified by:
getCMSSignedDatain interfacePdfSignatureOrDocTimestampInfo
-
isCoverAllOriginalBytes
public boolean isCoverAllOriginalBytes()
- Specified by:
isCoverAllOriginalBytesin interfacePdfSignatureOrDocTimestampInfo
-
-