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 void
addOuterSignature(PdfRevision signatureInfo)
void
checkIntegrity()
boolean
doesSignatureCoverAllOriginalBytes()
org.bouncycastle.cms.CMSSignedData
getCMSSignedData()
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()
PdfSignatureDictionary
getPdfSigDictInfo()
Returns a PDF Signature Dictionary info containerint[]
getSignatureByteRange()
List<SignerInfo>
getSignatureInformationStore()
Returns Signature Information Store contentbyte[]
getSignedDocumentBytes()
Date
getSigningDate()
boolean
isTimestampRevision()
String
uniqueId()
-
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
String
field names
-
getSignatureInformationStore
List<SignerInfo> getSignatureInformationStore()Returns Signature Information Store content- Returns:
- list of
SignerInfo
s
-