Interface IOnCountryFetchFailureStrategy
public interface IOnCountryFetchFailureStrategy
Interface for handling the failure of fetching a country-specific List of Trusted Lists (Lotl). Implementations can define custom strategies for dealing with such failures.
We provide 2 default implementations out of the box: - RemoveOnFailingCountryData
- which does nothing and won't throw an exception, but will not add any country-specific certificates to the trust store. - ThrowExceptionOnFailingCountryData
- which will throw an exception if the fetching of a country-specific Lotl fails so that the validation process can be halted.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onCountryFetchFailure
(CountrySpecificLotlFetcher.Result fetchResult) This method is called when the fetching of a country-specific Lotl fails.
-
Method Details
-
onCountryFetchFailure
This method is called when the fetching of a country-specific Lotl fails. It allows for custom handling of the failure.If the implementation does not throw an exception, the validation process will continue, and the certificates from the
CountrySpecificLotlFetcher.Result
will not be added to the trust store.- Parameters:
-
fetchResult
- the result of the fetch attempt, which may contain error details
-