Class DefaultSignatureProcessExecutor

java.lang.Object
eu.europa.esig.dss.validation.executor.AbstractProcessExecutor
eu.europa.esig.dss.validation.executor.signature.DefaultSignatureProcessExecutor
All Implemented Interfaces:
DocumentProcessExecutor, ProcessExecutor<Reports>

public class DefaultSignatureProcessExecutor extends AbstractProcessExecutor implements DocumentProcessExecutor
This class executes a signature validation process and produces SimpleReport, DetailedReport and ETSI Validation report
  • Field Details

    • validationLevel

      protected eu.europa.esig.dss.enumerations.ValidationLevel validationLevel
      The target highest validation level (default: ValidationLevel.ARCHIVAL_DATA)
    • enableEtsiValidationReport

      protected boolean enableEtsiValidationReport
      Defines if the ETSI Validation Report shall be generated (default: true)
    • includeSemantics

      protected boolean includeSemantics
      Defines if the semantics information shall be included (default: false)
  • Constructor Details

    • DefaultSignatureProcessExecutor

      public DefaultSignatureProcessExecutor()
      Default constructor instantiating object with default configuration
  • Method Details

    • setValidationLevel

      public void setValidationLevel(eu.europa.esig.dss.enumerations.ValidationLevel validationLevel)
      Description copied from interface: DocumentProcessExecutor
      This method allows to set the validation level that is used during the validation process execution.
      Specified by:
      setValidationLevel in interface DocumentProcessExecutor
      Parameters:
      validationLevel - the validation level.
    • setEnableEtsiValidationReport

      public void setEnableEtsiValidationReport(boolean enableEtsiValidationReport)
      Description copied from interface: DocumentProcessExecutor
      Specifies if the ETSI Validation Report must be created
      Specified by:
      setEnableEtsiValidationReport in interface DocumentProcessExecutor
      Parameters:
      enableEtsiValidationReport - enable the ETSI Validation Report generation
    • setIncludeSemantics

      public void setIncludeSemantics(boolean includeSemantics)
      Description copied from interface: DocumentProcessExecutor
      This method allows to enable/disable the semantics inclusion in the reports (Indication / SubIndication meanings) Disabled by default
      Specified by:
      setIncludeSemantics in interface DocumentProcessExecutor
      Parameters:
      includeSemantics - true to enable the inclusion of the semantics
    • execute

      public Reports execute()
      Description copied from interface: ProcessExecutor
      This method allows to run the validation process.
      Specified by:
      execute in interface ProcessExecutor<Reports>
      Returns:
      the Reports
    • getDiagnosticData

      protected eu.europa.esig.dss.diagnostic.DiagnosticData getDiagnosticData()
      Gets the DiagnosticDate
      Returns:
      DiagnosticData
    • buildReports

      protected Reports buildReports(eu.europa.esig.dss.diagnostic.DiagnosticData diagnosticData)
      Builds reports
      Parameters:
      diagnosticData - DiagnosticData to use
      Returns:
      Reports