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
ConstructorsModifierConstructorDescriptionprotectedEmpty constructorPDFDocumentValidator(DSSDocument document) The default constructor for PDFDocumentValidator.protectedPDFDocumentValidator(PDFDocumentAnalyzer pdfDocumentAnalyzer) Constructor with aPDFDocumentAnalyzer -
Method Summary
Modifier and TypeMethodDescriptionReturns the current instance ofDocumentAnalyzerReturns a list of found DSS Dictionaries across different revisionsGets the list of PDF document revisionsprotected PAdESDiagnosticDataBuilderThis method creates a format-specific implementation of theSignedDocumentDiagnosticDataBuildervoidsetPasswordProtection(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, 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:SignedDocumentValidatorReturns the current instance ofDocumentAnalyzer- Overrides:
getDocumentAnalyzerin 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:SignedDocumentValidatorThis method creates a format-specific implementation of theSignedDocumentDiagnosticDataBuilder- Overrides:
initializeDiagnosticDataBuilderin classSignedDocumentValidator- Returns:
SignedDocumentDiagnosticDataBuilder
-
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
-