Class PDFDocumentValidator

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

    Constructors
    Modifier
    Constructor
    Description
    protected
    Empty constructor
     
    PDFDocumentValidator(eu.europa.esig.dss.model.DSSDocument document)
    The default constructor for PDFDocumentValidator.
    protected
    Constructor with a PDFDocumentAnalyzer
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns a list of found DSS Dictionaries across different revisions
    Gets the list of PDF document revisions
     
    void
    setPasswordProtection(char[] passwordProtection)
    Specify the used password for the encrypted document
    void
    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, loadValidationPolicy, 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, validateDocument, validateDocument, validateDocument, validateDocument

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PDFDocumentValidator

      protected PDFDocumentValidator()
      Empty constructor
    • PDFDocumentValidator

      protected PDFDocumentValidator(PDFDocumentAnalyzer pdfDocumentAnalyzer)
      Constructor with a PDFDocumentAnalyzer
      Parameters:
      pdfDocumentAnalyzer - PDFDocumentAnalyzer
    • PDFDocumentValidator

      public PDFDocumentValidator(eu.europa.esig.dss.model.DSSDocument document)
      The default constructor for PDFDocumentValidator.
      Parameters:
      document - DSSDocument
  • Method Details

    • getDocumentAnalyzer

      public PDFDocumentAnalyzer getDocumentAnalyzer()
      Overrides:
      getDocumentAnalyzer in class eu.europa.esig.dss.validation.SignedDocumentValidator
    • setPdfObjFactory

      public void setPdfObjFactory(IPdfObjFactory pdfObjFactory)
      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

      protected PAdESDiagnosticDataBuilder initializeDiagnosticDataBuilder()
      Overrides:
      initializeDiagnosticDataBuilder in class eu.europa.esig.dss.validation.SignedDocumentValidator
    • getDssDictionaries

      public List<PdfDssDict> getDssDictionaries()
      Returns a list of found DSS Dictionaries across different revisions
      Returns:
      list of PdfDssDicts
    • getRevisions

      public List<PdfRevision> getRevisions()
      Gets the list of PDF document revisions
      Returns:
      a list of PdfRevisions