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
ConstructorsModifierConstructorDescriptionprotectedAbstractAnalysis(TLSource source, CacheAccessByKey cacheAccess, DSSFileLoader dssFileLoader) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected DSSDocumentDownloads the document by urlprotected voidThis method expires the cache in order to trigger the corresponding tasks on refreshprotected final CacheAccessByKeyGets theCacheAccessByKeyprotected abstract AbstractParsingTask<?> getParsingTask(DSSDocument document) Returns the corresponding parsing task for the source on the given documentprotected final TLSourceReturns the currentTLSourceprotected TLValidatorTaskgetValidationTask(DSSDocument document, CertificateSource certificateSource) Returns the corresponding validation task for the source on the given document using the provided certificate sourceprotected voidparsing(DSSDocument document) Parses the documentprotected voidvalidation(DSSDocument document, CertificateSource certificateSource) Validates the document
-
Constructor Details
-
AbstractAnalysis
protected AbstractAnalysis(TLSource source, CacheAccessByKey cacheAccess, DSSFileLoader dssFileLoader) Default constructor- Parameters:
source-TLSourcerepresenting a TL or LOTLcacheAccess-CacheAccessByKeydssFileLoader-DSSFileLoader
-
-
Method Details
-
getSource
-
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-DSSDocumentto parse
-
getParsingTask
Returns the corresponding parsing task for the source on the given document- Parameters:
document-DSSDocumentto parse- Returns:
AbstractParsingTaskto be executed
-
validation
Validates the document- Parameters:
document-DSSDocumentto validatecertificateSource-CertificateSourceto 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-DSSDocumentto parsecertificateSource-CertificateSourceto use for validation- Returns:
TLValidatorTaskto be executed
-