java.lang.Object
eu.europa.esig.dss.validation.SignedDocumentValidator
eu.europa.esig.dss.pades.validation.PDFDocumentValidator
- All Implemented Interfaces:
eu.europa.esig.dss.validation.DocumentValidator,eu.europa.esig.dss.validation.executor.ProcessExecutorProvider<eu.europa.esig.dss.validation.executor.DocumentProcessExecutor>
public class PDFDocumentValidator
extends eu.europa.esig.dss.validation.SignedDocumentValidator
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
ConstructorsModifierConstructorDescriptionprotectedEmpty constructorPDFDocumentValidator(eu.europa.esig.dss.model.DSSDocument document) The default constructor for PDFDocumentValidator.protectedPDFDocumentValidator(PDFDocumentAnalyzer pdfDocumentAnalyzer) Constructor with aPDFDocumentAnalyzer -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of found DSS Dictionaries across different revisionsGets the list of PDF document revisionsprotected PAdESDiagnosticDataBuildervoidsetPasswordProtection(char[] passwordProtection) Specify the used password for the encrypted documentvoidsetPdfObjFactory(IPdfObjFactory pdfObjFactory) Set the IPdfObjFactory.Methods inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
assertConfigurationValid, fromDocument, getDefaultProcessExecutor, getDetachedEvidenceRecords, getDetachedTimestamps, getDiagnosticData, getOriginalDocuments, getOriginalDocuments, getSignatureById, getSignatures, getValidationData, getValidationData, isSupported, processValidationPolicy, provideProcessExecutorInstance, setCertificateVerifier, setContainerContents, setDefaultDigestAlgorithm, setDetachedContents, setDetachedEvidenceRecordDocuments, setEnableEtsiValidationReport, setIncludeSemantics, setLocale, setManifestFile, setProcessExecutor, setSignaturePolicyProvider, setSigningCertificateSource, 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
public PDFDocumentValidator(eu.europa.esig.dss.model.DSSDocument document) The default constructor for PDFDocumentValidator.- Parameters:
document-DSSDocument
-
-
Method Details
-
getDocumentAnalyzer
- Overrides:
getDocumentAnalyzerin classeu.europa.esig.dss.validation.SignedDocumentValidator
-
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
- Overrides:
initializeDiagnosticDataBuilderin classeu.europa.esig.dss.validation.SignedDocumentValidator
-
getDssDictionaries
Returns a list of found DSS Dictionaries across different revisions- Returns:
- list of
PdfDssDicts
-
getRevisions
Gets the list of PDF document revisions- Returns:
- a list of
PdfRevisions
-