Class AbstractASiCContainerValidator

java.lang.Object
eu.europa.esig.dss.validation.SignedDocumentValidator
eu.europa.esig.dss.asic.common.validation.AbstractASiCContainerValidator
All Implemented Interfaces:
eu.europa.esig.dss.validation.DocumentValidator, eu.europa.esig.dss.validation.executor.ProcessExecutorProvider<eu.europa.esig.dss.validation.executor.DocumentProcessExecutor>

public abstract class AbstractASiCContainerValidator extends eu.europa.esig.dss.validation.SignedDocumentValidator
The abstract class for an ASiC container validation

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
    Constructor with an analyzer
  • Method Summary

    Modifier and Type
    Method
    Description
    List<eu.europa.esig.dss.model.DSSDocument>
    Returns a list of all embedded documents
    List<eu.europa.esig.dss.model.DSSDocument>
    Returns a list of all embedded manifest documents
    List<eu.europa.esig.dss.model.DSSDocument>
    Returns a list of archive documents embedded the container
    List<eu.europa.esig.dss.model.DSSDocument>
    Returns a list of embedded archive manifest documents
    eu.europa.esig.dss.enumerations.ASiCContainerType
    Returns a container type
     
    List<eu.europa.esig.dss.model.DSSDocument>
    Returns a list of embedded evidence record documents
    List<eu.europa.esig.dss.model.DSSDocument>
    Returns a list of embedded evidence record manifest documents
    List<eu.europa.esig.dss.model.DSSDocument>
    Returns a list of embedded signature manifest documents
    List<eu.europa.esig.dss.model.ManifestFile>
    Returns a list of parser Manifest files
    eu.europa.esig.dss.model.DSSDocument
    Returns a mimetype document
    List<eu.europa.esig.dss.model.DSSDocument>
    Returns a list of embedded signature documents
    List<eu.europa.esig.dss.model.DSSDocument>
    Returns a list of embedded signed documents
    List<eu.europa.esig.dss.model.DSSDocument>
    Returns a list of embedded timestamp documents
    List<eu.europa.esig.dss.model.DSSDocument>
    Returns a list of unsupported documents from the container
    protected eu.europa.esig.dss.validation.reports.diagnostic.SignedDocumentDiagnosticDataBuilder
     
    This method creates a new object SignedDocumentDiagnosticDataBuilder
    boolean
    isSupported(ASiCContent asicContent)
    Checks if the ASiCContent is supported by the current validator

    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

  • Method Details

    • getDocumentAnalyzer

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

      public boolean isSupported(ASiCContent asicContent)
      Checks if the ASiCContent is supported by the current validator
      Parameters:
      asicContent - ASiCContent to check
      Returns:
      TRUE if the ASiC Content is supported, FALSE otherwise
    • getContainerType

      public eu.europa.esig.dss.enumerations.ASiCContainerType getContainerType()
      Returns a container type
      Returns:
      ASiCContainerType
    • getAllDocuments

      public List<eu.europa.esig.dss.model.DSSDocument> getAllDocuments()
      Returns a list of all embedded documents
      Returns:
      a list of all embedded DSSDocuments
    • getSignatureDocuments

      public List<eu.europa.esig.dss.model.DSSDocument> getSignatureDocuments()
      Returns a list of embedded signature documents
      Returns:
      a list of signature DSSDocuments
    • getSignedDocuments

      public List<eu.europa.esig.dss.model.DSSDocument> getSignedDocuments()
      Returns a list of embedded signed documents
      Returns:
      a list of signed DSSDocuments
    • getManifestDocuments

      public List<eu.europa.esig.dss.model.DSSDocument> getManifestDocuments()
      Returns a list of embedded signature manifest documents
      Returns:
      a list of signature manifest DSSDocuments
    • getTimestampDocuments

      public List<eu.europa.esig.dss.model.DSSDocument> getTimestampDocuments()
      Returns a list of embedded timestamp documents
      Returns:
      a list of timestamp DSSDocuments
    • getEvidenceRecordDocuments

      public List<eu.europa.esig.dss.model.DSSDocument> getEvidenceRecordDocuments()
      Returns a list of embedded evidence record documents
      Returns:
      a list of evidence record DSSDocuments
    • getArchiveManifestDocuments

      public List<eu.europa.esig.dss.model.DSSDocument> getArchiveManifestDocuments()
      Returns a list of embedded archive manifest documents
      Returns:
      a list of archive manifest DSSDocuments
    • getEvidenceRecordManifestDocuments

      public List<eu.europa.esig.dss.model.DSSDocument> getEvidenceRecordManifestDocuments()
      Returns a list of embedded evidence record manifest documents
      Returns:
      a list of evidence record manifest DSSDocuments
    • getAllManifestDocuments

      public List<eu.europa.esig.dss.model.DSSDocument> getAllManifestDocuments()
      Returns a list of all embedded manifest documents
      Returns:
      a list of manifest DSSDocuments
    • getArchiveDocuments

      public List<eu.europa.esig.dss.model.DSSDocument> getArchiveDocuments()
      Returns a list of archive documents embedded the container
      Returns:
      a list of archive DSSDocuments
    • getMimeTypeDocument

      public eu.europa.esig.dss.model.DSSDocument getMimeTypeDocument()
      Returns a mimetype document
      Returns:
      DSSDocument mimetype
    • getUnsupportedDocuments

      public List<eu.europa.esig.dss.model.DSSDocument> getUnsupportedDocuments()
      Returns a list of unsupported documents from the container
      Returns:
      a list of unsupported documents DSSDocuments
    • getManifestFiles

      public List<eu.europa.esig.dss.model.ManifestFile> getManifestFiles()
      Returns a list of parser Manifest files
      Returns:
      a list of ManifestFiles
    • initializeDiagnosticDataBuilder

      protected eu.europa.esig.dss.validation.reports.diagnostic.SignedDocumentDiagnosticDataBuilder initializeDiagnosticDataBuilder()
      Overrides:
      initializeDiagnosticDataBuilder in class eu.europa.esig.dss.validation.SignedDocumentValidator
    • instantiateASiCDiagnosticDataBuilder

      protected ASiCContainerDiagnosticDataBuilder instantiateASiCDiagnosticDataBuilder()
      This method creates a new object SignedDocumentDiagnosticDataBuilder
      Returns:
      ASiCContainerDiagnosticDataBuilder