Package eu.europa.esig.dss.tsl.job
Class TLValidationJob
java.lang.Object
eu.europa.esig.dss.tsl.job.TLValidationJob
The main class performing the TL/LOTL download / parsing / validation tasks
-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with null configuration -
Method Summary
Modifier and TypeMethodDescriptionReturns validation job summary for all processed LOTL / TLsvoid
Used to execute the refresh in offline mode (no date from remote sources will be downloaded) By default used on initializationvoid
Used to execute the refresh in online mode (all data will be updated from remote sources) Used as default database update.void
setCacheCleaner
(CacheCleaner cacheCleaner) Sets the cacheCleanervoid
setDebug
(boolean debug) Sets the debug mode (print the cache contents before and after the synchronization)void
setExecutorService
(ExecutorService executorService) Sets the execution service to manage the asynchronous behaviourvoid
setListOfTrustedListSources
(LOTLSource... listOfTrustedListSources) Sets the LOTL Sourcesvoid
setLOTLAlerts
(List<Alert<LOTLInfo>> lotlAlerts) Sets the LOTL alerts to be processedvoid
setOfflineDataLoader
(DSSFileLoader offlineLoader) Sets the offline DSSFileLoader used for data loading from the local sourcevoid
setOnlineDataLoader
(DSSFileLoader onlineLoader) Sets the online DSSFileLoader used for data loading from a remote sourcevoid
setSynchronizationStrategy
(SynchronizationStrategy synchronizationStrategy) Sets the strategy to follow for the certificate synchronizationvoid
setTLAlerts
(List<Alert<TLInfo>> tlAlerts) Sets the TL alerts to be processedvoid
setTrustedListCertificateSource
(TrustedListsCertificateSource trustedListCertificateSource) Sets the TrustedListsCertificateSource to be filled with the jobvoid
setTrustedListSources
(TLSource... trustedListSources) Sets the additional TL Sources
-
Constructor Details
-
TLValidationJob
public TLValidationJob()Default constructor instantiating object with null configuration
-
-
Method Details
-
setTrustedListSources
Sets the additional TL Sources- Parameters:
trustedListSources
-TLSource
s
-
setListOfTrustedListSources
Sets the LOTL Sources- Parameters:
listOfTrustedListSources
-LOTLSource
s
-
setExecutorService
Sets the execution service to manage the asynchronous behaviour- Parameters:
executorService
-ExecutorService
-
setOfflineDataLoader
Sets the offline DSSFileLoader used for data loading from the local source- Parameters:
offlineLoader
-DSSFileLoader
-
setOnlineDataLoader
Sets the online DSSFileLoader used for data loading from a remote source- Parameters:
onlineLoader
-DSSFileLoader
-
setCacheCleaner
Sets the cacheCleaner- Parameters:
cacheCleaner
-CacheCleaner
-
setTrustedListCertificateSource
public void setTrustedListCertificateSource(TrustedListsCertificateSource trustedListCertificateSource) Sets the TrustedListsCertificateSource to be filled with the job- Parameters:
trustedListCertificateSource
- the TrustedListsCertificateSource to fill with the job results
-
setSynchronizationStrategy
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
Sets the LOTL alerts to be processed- Parameters:
lotlAlerts
- a list ofAlert
s
-
setTLAlerts
Sets the TL alerts to be processed- Parameters:
tlAlerts
- a list ofAlert
s
-
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.
-