Class AbstractAnalysis

java.lang.Object
eu.europa.esig.dss.tsl.runnable.AbstractAnalysis
Direct Known Subclasses:
AbstractRunnableAnalysis, PivotProcessing

public abstract class AbstractAnalysis extends Object
Processes the LOTL/TL validation job (download - parse - validate)
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractAnalysis(TLSource source, CacheAccessByKey cacheAccess, eu.europa.esig.dss.spi.client.http.DSSFileLoader dssFileLoader)
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    protected eu.europa.esig.dss.model.DSSDocument
    Downloads the document by url
    protected void
    This method expires the cache in order to trigger the corresponding tasks on refresh
    protected final CacheAccessByKey
    Gets the CacheAccessByKey
    protected abstract AbstractParsingTask<?>
    getParsingTask(eu.europa.esig.dss.model.DSSDocument document)
    Returns the corresponding parsing task for the source on the given document
    protected final TLSource
    Returns the current TLSource
    protected TLValidatorTask
    getValidationTask(eu.europa.esig.dss.model.DSSDocument document, eu.europa.esig.dss.spi.x509.CertificateSource certificateSource)
    Returns the corresponding validation task for the source on the given document using the provided certificate source
    protected void
    parsing(eu.europa.esig.dss.model.DSSDocument document)
    Parses the document
    protected void
    validation(eu.europa.esig.dss.model.DSSDocument document, eu.europa.esig.dss.spi.x509.CertificateSource certificateSource)
    Validates the document

    Methods inherited from class java.lang.Object

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

    • AbstractAnalysis

      protected AbstractAnalysis(TLSource source, CacheAccessByKey cacheAccess, eu.europa.esig.dss.spi.client.http.DSSFileLoader dssFileLoader)
      Default constructor
      Parameters:
      source - TLSource representing a TL or LOTL
      cacheAccess - CacheAccessByKey
      dssFileLoader - DSSFileLoader
  • Method Details

    • getSource

      protected final TLSource getSource()
      Returns the current TLSource
      Returns:
      TLSource
    • getCacheAccessByKey

      protected final CacheAccessByKey getCacheAccessByKey()
      Gets the CacheAccessByKey
      Returns:
      CacheAccessByKey
    • download

      protected eu.europa.esig.dss.model.DSSDocument download(String url)
      Downloads the document by url
      Parameters:
      url - String
      Returns:
      DSSDocument
    • expireCache

      protected void expireCache()
      This method expires the cache in order to trigger the corresponding tasks on refresh
    • parsing

      protected void parsing(eu.europa.esig.dss.model.DSSDocument document)
      Parses the document
      Parameters:
      document - DSSDocument to parse
    • getParsingTask

      protected abstract AbstractParsingTask<?> getParsingTask(eu.europa.esig.dss.model.DSSDocument document)
      Returns the corresponding parsing task for the source on the given document
      Parameters:
      document - DSSDocument to parse
      Returns:
      AbstractParsingTask to be executed
    • validation

      protected void validation(eu.europa.esig.dss.model.DSSDocument document, eu.europa.esig.dss.spi.x509.CertificateSource certificateSource)
      Validates the document
      Parameters:
      document - DSSDocument to validate
      certificateSource - CertificateSource to use
    • getValidationTask

      protected TLValidatorTask getValidationTask(eu.europa.esig.dss.model.DSSDocument document, eu.europa.esig.dss.spi.x509.CertificateSource certificateSource)
      Returns the corresponding validation task for the source on the given document using the provided certificate source
      Parameters:
      document - DSSDocument to parse
      certificateSource - CertificateSource to use for validation
      Returns:
      TLValidatorTask to be executed