Class RemoveOnFailingCountryData
java.lang.Object
com.itextpdf.signatures.validation.lotl.RemoveOnFailingCountryData
- All Implemented Interfaces:
-
IOnFailingCountryLotlData
This class implements the
IOnFailingCountryLotlData
interface and provides a strategy for handling failures when fetching country-specific Lotl (List of Trusted Lists) files. It ignores the failure of the specific country, and converts all report items to INFO status. This way the country-specific Lotl is not used and the validation report is not invalid but can be indeterminate.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onCountryFailure
(CountrySpecificLotlFetcher.Result fetchResult) This method is called when the fetching of a country-specific Lotl fails.
-
Constructor Details
-
RemoveOnFailingCountryData
public RemoveOnFailingCountryData()Constructs an instance ofRemoveOnFailingCountryData
.
-
-
Method Details
-
onCountryFailure
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.- Specified by:
-
onCountryFailure
in interfaceIOnFailingCountryLotlData
- Parameters:
-
fetchResult
- the result of the fetch attempt, which may contain error details
-