Class Sha2FileCacheDataLoader

java.lang.Object
eu.europa.esig.dss.tsl.sha2.Sha2FileCacheDataLoader
All Implemented Interfaces:
DSSCacheFileLoader, DSSFileLoader, Serializable

public class Sha2FileCacheDataLoader extends Object implements DSSCacheFileLoader
This class implements a document loading logic, defined within ETSI TS 119 612 "6.1 TL publication" for Trusted Lists. The class will try to access a corresponding .sha2 file for every requested document available in the cache, compare its digest, and will enforce a document update if the document has expired. The class provides constructors allowing manual configuration of the object, as well as static methods allowing to instantiate pre-configured objects for Trusted Lists validation. See: - #initSha2StrictDataLoader method to create a dataloader, enforcing refresh of a Trusted List only when a new .sha2 document is obtained or NextUpdate has been reached; - #initSha2DailyUpdateDataLoader method to create a dataloader, enforcing refresh of a Trusted List when a new .sha2 document is obtained, NextUpdate has been reached or when the document has not been updated for at least 24 hours; - #initSha2CustomExpirationDataLoader method to create a dataloader, enforcing refresh of a Trusted List when a new .sha2 document is obtained, NextUpdate has been reached or when the document has not been updated for the indicated time period; - #initSha2IgnoredDataLoader method to create a dataloader, enforcing refresh of a Trusted List in all cases.
See Also: