Package org.digidoc4j.impl.asic.tsl
Class DefaultTSLRefreshCallback
java.lang.Object
org.digidoc4j.impl.asic.tsl.DefaultTSLRefreshCallback
- All Implemented Interfaces:
Serializable,TSLRefreshCallback
Default implementation of the
TSLRefreshCallback.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTSLRefreshCallback(Configuration configuration) Creates an instance of this callback with the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptionbooleanensureTSLState(eu.europa.esig.dss.model.tsl.TLValidationJobSummary summary) Ensures the state of the TSL and either throws an exception or returnstrue.
-
Constructor Details
-
DefaultTSLRefreshCallback
Creates an instance of this callback with the specified configuration.- Parameters:
configuration- configuration to use
-
-
Method Details
-
ensureTSLState
public boolean ensureTSLState(eu.europa.esig.dss.model.tsl.TLValidationJobSummary summary) Ensures the state of the TSL and either throws an exception or returnstrue.- Specified by:
ensureTSLStatein interfaceTSLRefreshCallback- Parameters:
summary- the information about the state of the TSL- Returns:
- always
true, unless an exception is thrown - Throws:
TslRefreshException- if:- the summary contains no information about any LoTL-s
- a LoTL has failed to download, parse or validate
- all trusted lists in a LoTL have failed to download, parse or validate
- the trusted list of any required territory has failed to download, parse or validate
- See Also:
-