Class TLValidationJob

java.lang.Object
eu.europa.esig.dss.tsl.job.TLValidationJob

public class TLValidationJob extends Object
The main class performing the TL/LOTL download / parsing / validation tasks
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor instantiating object with null configuration
  • Method Summary

    Modifier and Type
    Method
    Description
    eu.europa.esig.dss.model.tsl.TLValidationJobSummary
    Returns validation job summary for all processed LOTL / TLs
    void
    Used to execute the refresh in offline mode (no date from remote sources will be downloaded) By default used on initialization
    void
    Used to execute the refresh in online mode (all data will be updated from remote sources) Used as default database update.
    void
    Sets the cacheCleaner
    void
    setDebug(boolean debug)
    Sets the debug mode (print the cache contents before and after the synchronization)
    void
    Sets the execution service to manage the asynchronous behaviour
    void
    setListOfTrustedListSources(LOTLSource... listOfTrustedListSources)
    Sets the LOTL Sources
    void
    setLOTLAlerts(List<eu.europa.esig.dss.alert.Alert<eu.europa.esig.dss.model.tsl.LOTLInfo>> lotlAlerts)
    Sets the LOTL alerts to be processed
    void
    setOfflineDataLoader(eu.europa.esig.dss.spi.client.http.DSSFileLoader offlineLoader)
    Sets the offline DSSFileLoader used for data loading from the local source
    void
    setOnlineDataLoader(eu.europa.esig.dss.spi.client.http.DSSFileLoader onlineLoader)
    Sets the online DSSFileLoader used for data loading from a remote source
    void
    Sets the strategy to follow for the certificate synchronization
    void
    setTLAlerts(List<eu.europa.esig.dss.alert.Alert<eu.europa.esig.dss.model.tsl.TLInfo>> tlAlerts)
    Sets the TL alerts to be processed
    void
    setTrustedListCertificateSource(eu.europa.esig.dss.model.tsl.TrustPropertiesCertificateSource trustPropertiesCertificateSource)
    Sets the TrustedListsCertificateSource to be filled with the job
    void
    setTrustedListSources(TLSource... trustedListSources)
    Sets the additional TL Sources

    Methods inherited from class java.lang.Object

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

    • TLValidationJob

      public TLValidationJob()
      Default constructor instantiating object with null configuration
  • Method Details

    • setTrustedListSources

      public void setTrustedListSources(TLSource... trustedListSources)
      Sets the additional TL Sources
      Parameters:
      trustedListSources - TLSources
    • setListOfTrustedListSources

      public void setListOfTrustedListSources(LOTLSource... listOfTrustedListSources)
      Sets the LOTL Sources
      Parameters:
      listOfTrustedListSources - LOTLSources
    • setExecutorService

      public void setExecutorService(ExecutorService executorService)
      Sets the execution service to manage the asynchronous behaviour
      Parameters:
      executorService - ExecutorService
    • setOfflineDataLoader

      public void setOfflineDataLoader(eu.europa.esig.dss.spi.client.http.DSSFileLoader offlineLoader)
      Sets the offline DSSFileLoader used for data loading from the local source
      Parameters:
      offlineLoader - DSSFileLoader
    • setOnlineDataLoader

      public void setOnlineDataLoader(eu.europa.esig.dss.spi.client.http.DSSFileLoader onlineLoader)
      Sets the online DSSFileLoader used for data loading from a remote source
      Parameters:
      onlineLoader - DSSFileLoader
    • setCacheCleaner

      public void setCacheCleaner(CacheCleaner cacheCleaner)
      Sets the cacheCleaner
      Parameters:
      cacheCleaner - CacheCleaner
    • setTrustedListCertificateSource

      public void setTrustedListCertificateSource(eu.europa.esig.dss.model.tsl.TrustPropertiesCertificateSource trustPropertiesCertificateSource)
      Sets the TrustedListsCertificateSource to be filled with the job
      Parameters:
      trustPropertiesCertificateSource - the TrustedListsCertificateSource to fill with the job results
    • setSynchronizationStrategy

      public void setSynchronizationStrategy(SynchronizationStrategy synchronizationStrategy)
      Sets the strategy to follow for the certificate synchronization
      Parameters:
      synchronizationStrategy - the different options for the certificate synchronization
    • setDebug

      public void setDebug(boolean debug)
      Sets the debug mode (print the cache contents before and after the synchronization)
      Parameters:
      debug - TRUE to enable the debug mode (default = false)
    • setLOTLAlerts

      public void setLOTLAlerts(List<eu.europa.esig.dss.alert.Alert<eu.europa.esig.dss.model.tsl.LOTLInfo>> lotlAlerts)
      Sets the LOTL alerts to be processed
      Parameters:
      lotlAlerts - a list of Alerts
    • setTLAlerts

      public void setTLAlerts(List<eu.europa.esig.dss.alert.Alert<eu.europa.esig.dss.model.tsl.TLInfo>> tlAlerts)
      Sets the TL alerts to be processed
      Parameters:
      tlAlerts - a list of Alerts
    • getSummary

      public eu.europa.esig.dss.model.tsl.TLValidationJobSummary getSummary()
      Returns validation job summary for all processed LOTL / TLs
      Returns:
      TLValidationJobSummary
    • offlineRefresh

      public void offlineRefresh()
      Used to execute the refresh in offline mode (no date from remote sources will be downloaded) By default used on initialization
    • onlineRefresh

      public void onlineRefresh()
      Used to execute the refresh in online mode (all data will be updated from remote sources) Used as default database update.