Class PDFDocumentValidator
java.lang.Object
eu.europa.esig.dss.validation.SignedDocumentValidator
eu.europa.esig.dss.pades.validation.PDFDocumentValidator
- All Implemented Interfaces:
DocumentValidator
,ProcessExecutorProvider<DocumentProcessExecutor>
- Direct Known Subclasses:
PDFADocumentValidator
Validation of PDF document.
In order to perform validation-process, please ensure the `dss-validation` module is loaded within the dependencies list of your project.
-
Field Summary
Fields inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
documentAnalyzer, processExecutor
-
Constructor Summary
ModifierConstructorDescriptionprotected
Empty constructorPDFDocumentValidator
(DSSDocument document) The default constructor for PDFDocumentValidator.protected
PDFDocumentValidator
(PDFDocumentAnalyzer pdfDocumentAnalyzer) Constructor with aPDFDocumentAnalyzer
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current instance ofDocumentAnalyzer
Returns a list of found DSS Dictionaries across different revisionsGets the list of PDF document revisionsprotected PAdESDiagnosticDataBuilder
This method creates a format-specific implementation of theSignedDocumentDiagnosticDataBuilder
void
setPasswordProtection
(char[] passwordProtection) Specify the used password for the encrypted documentvoid
setPdfObjFactory
(IPdfObjFactory pdfObjFactory) Set the IPdfObjFactory.Methods inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
assertConfigurationValid, fromDocument, getDefaultProcessExecutor, getDetachedEvidenceRecords, getDetachedTimestamps, getDiagnosticData, getOriginalDocuments, getOriginalDocuments, getSignatureById, getSignaturePolicyValidatorLoader, getSignatures, getValidationData, getValidationData, isSupported, processValidationPolicy, provideProcessExecutorInstance, setCertificateVerifier, setContainerContents, setDefaultDigestAlgorithm, setDetachedContents, setDetachedEvidenceRecordDocuments, setEnableEtsiValidationReport, setIncludeSemantics, setLocale, setManifestFile, setProcessExecutor, setSignaturePolicyProvider, setSigningCertificateSource, setSkipValidationContextExecution, setTokenExtractionStrategy, setTokenIdentifierProvider, setValidationContextExecutor, setValidationLevel, setValidationTime, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument
-
Constructor Details
-
PDFDocumentValidator
protected PDFDocumentValidator()Empty constructor -
PDFDocumentValidator
Constructor with aPDFDocumentAnalyzer
- Parameters:
pdfDocumentAnalyzer
-PDFDocumentAnalyzer
-
PDFDocumentValidator
The default constructor for PDFDocumentValidator.- Parameters:
document
-DSSDocument
-
-
Method Details
-
getDocumentAnalyzer
Description copied from class:SignedDocumentValidator
Returns the current instance ofDocumentAnalyzer
- Overrides:
getDocumentAnalyzer
in classSignedDocumentValidator
- Returns:
DocumentAnalyzer
-
setPdfObjFactory
Set the IPdfObjFactory. Allow to set the used implementation. Cannot be null.- Parameters:
pdfObjFactory
- the implementation to be used.
-
setPasswordProtection
public void setPasswordProtection(char[] passwordProtection) Specify the used password for the encrypted document- Parameters:
passwordProtection
- the used password
-
initializeDiagnosticDataBuilder
Description copied from class:SignedDocumentValidator
This method creates a format-specific implementation of theSignedDocumentDiagnosticDataBuilder
- Overrides:
initializeDiagnosticDataBuilder
in classSignedDocumentValidator
- Returns:
SignedDocumentDiagnosticDataBuilder
-
getDssDictionaries
Returns a list of found DSS Dictionaries across different revisions- Returns:
- list of
PdfDssDict
s
-
getRevisions
Gets the list of PDF document revisions- Returns:
- a list of
PdfRevision
s
-