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, eu.europa.esig.dss.spi.client.http.DSSFileLoader dssFileLoader) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected eu.europa.esig.dss.model.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(eu.europa.esig.dss.model.DSSDocument document) Returns the corresponding parsing task for the source on the given documentprotected final TLSourceReturns the currentTLSourceprotected TLValidatorTaskgetValidationTask(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 sourceprotected voidparsing(eu.europa.esig.dss.model.DSSDocument document) Parses the documentprotected voidvalidation(eu.europa.esig.dss.model.DSSDocument document, eu.europa.esig.dss.spi.x509.CertificateSource certificateSource) Validates the document
-
Constructor Details
-
AbstractAnalysis
protected AbstractAnalysis(TLSource source, CacheAccessByKey cacheAccess, eu.europa.esig.dss.spi.client.http.DSSFileLoader dssFileLoader) Default constructor- Parameters:
source-TLSourcerepresenting a TL or LOTLcacheAccess-CacheAccessByKeydssFileLoader-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
protected void parsing(eu.europa.esig.dss.model.DSSDocument document) Parses the document- Parameters:
document-DSSDocumentto 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-DSSDocumentto parse- Returns:
AbstractParsingTaskto 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-DSSDocumentto validatecertificateSource-CertificateSourceto 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-DSSDocumentto parsecertificateSource-CertificateSourceto use for validation- Returns:
TLValidatorTaskto be executed
-