Package eu.europa.esig.dss.tsl.runnable
Class AbstractAnalysis
java.lang.Object
eu.europa.esig.dss.tsl.runnable.AbstractAnalysis
- Direct Known Subclasses:
AbstractRunnableAnalysis
,PivotProcessing
Processes the LOTL/TL validation job (download - parse - validate)
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractAnalysis
(TLSource source, CacheAccessByKey cacheAccess, DSSFileLoader dssFileLoader) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected DSSDocument
Downloads the document by urlprotected void
This method expires the cache in order to trigger the corresponding tasks on refreshprotected final CacheAccessByKey
Gets theCacheAccessByKey
protected abstract AbstractParsingTask<?>
getParsingTask
(DSSDocument document) Returns the corresponding parsing task for the source on the given documentprotected final TLSource
Returns the currentTLSource
protected TLValidatorTask
getValidationTask
(DSSDocument document, CertificateSource certificateSource) Returns the corresponding validation task for the source on the given document using the provided certificate sourceprotected void
parsing
(DSSDocument document) Parses the documentprotected void
validation
(DSSDocument document, CertificateSource certificateSource) Validates the document
-
Constructor Details
-
AbstractAnalysis
protected AbstractAnalysis(TLSource source, CacheAccessByKey cacheAccess, DSSFileLoader dssFileLoader) Default constructor- Parameters:
source
-TLSource
representing a TL or LOTLcacheAccess
-CacheAccessByKey
dssFileLoader
-DSSFileLoader
-
-
Method Details
-
getSource
Returns the currentTLSource
- Returns:
TLSource
-
getCacheAccessByKey
Gets theCacheAccessByKey
- Returns:
CacheAccessByKey
-
download
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
Parses the document- Parameters:
document
-DSSDocument
to parse
-
getParsingTask
Returns the corresponding parsing task for the source on the given document- Parameters:
document
-DSSDocument
to parse- Returns:
AbstractParsingTask
to be executed
-
validation
Validates the document- Parameters:
document
-DSSDocument
to validatecertificateSource
-CertificateSource
to use
-
getValidationTask
protected TLValidatorTask getValidationTask(DSSDocument document, CertificateSource certificateSource) Returns the corresponding validation task for the source on the given document using the provided certificate source- Parameters:
document
-DSSDocument
to parsecertificateSource
-CertificateSource
to use for validation- Returns:
TLValidatorTask
to be executed
-