Package eu.europa.esig.dss.validation
Interface PdfRevision
- All Known Implementing Classes:
PdfCMSRevision,PdfDocTimestampRevision,PdfSignatureRevision
public interface PdfRevision
The usage of this interface permit the user to choose the underlying PDF library use to created PDF signatures.
-
Method Summary
Modifier and Type Method Description voidaddOuterSignature(PdfRevision signatureInfo)voidcheckIntegrity()booleandoesSignatureCoverAllOriginalBytes()org.bouncycastle.cms.CMSSignedDatagetCMSSignedData()byte[]getContents()Returns byte array of decoding the hexadecimal string present within the /Contents dictionaryList<String>getFieldNames()Returns a list of signature field names that refer the current objectList<PdfRevision>getOuterSignatures()PdfSignatureDictionarygetPdfSigDictInfo()Returns a PDF Signature Dictionary info containerint[]getSignatureByteRange()List<SignerInfo>getSignatureInformationStore()Returns Signature Information Store contentbyte[]getSignedDocumentBytes()DategetSigningDate()booleanisTimestampRevision()StringuniqueId()
-
Method Details
-
getSignatureByteRange
int[] getSignatureByteRange() -
getContents
byte[] getContents()Returns byte array of decoding the hexadecimal string present within the /Contents dictionary- Returns:
- byte array
-
checkIntegrity
void checkIntegrity() -
getSigningDate
Date getSigningDate() -
getSignedDocumentBytes
byte[] getSignedDocumentBytes()- Returns:
- a byte array representing the DTBS (without a signature, but with the placeholder)
-
addOuterSignature
-
getOuterSignatures
List<PdfRevision> getOuterSignatures()- Returns:
- signatures that covers a document that contains this signature
-
isTimestampRevision
boolean isTimestampRevision() -
doesSignatureCoverAllOriginalBytes
boolean doesSignatureCoverAllOriginalBytes() -
getCMSSignedData
org.bouncycastle.cms.CMSSignedData getCMSSignedData() -
uniqueId
String uniqueId() -
getPdfSigDictInfo
PdfSignatureDictionary getPdfSigDictInfo()Returns a PDF Signature Dictionary info container- Returns:
PdfSignatureDictionary
-
getFieldNames
Returns a list of signature field names that refer the current object- Returns:
- list of
Stringfield names
-
getSignatureInformationStore
List<SignerInfo> getSignatureInformationStore()Returns Signature Information Store content- Returns:
- list of
SignerInfos
-