Class DefaultTSLRefreshCallback

java.lang.Object
org.digidoc4j.impl.asic.tsl.DefaultTSLRefreshCallback
All Implemented Interfaces:
Serializable, TSLRefreshCallback

public class DefaultTSLRefreshCallback extends Object implements TSLRefreshCallback
Default implementation of the TSLRefreshCallback.
See Also:
  • Constructor Details

    • DefaultTSLRefreshCallback

      public DefaultTSLRefreshCallback(Configuration configuration)
      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 returns true.
      Specified by:
      ensureTSLState in interface TSLRefreshCallback
      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: