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 TypeMethodDescriptionboolean
ensureTSLState
(eu.europa.esig.dss.spi.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.spi.tsl.TLValidationJobSummary summary) Ensures the state of the TSL and either throws an exception or returnstrue
.- Specified by:
ensureTSLState
in 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:
-