Class ThrowExceptionOnFailingCountryData
java.lang.Object
com.itextpdf.signatures.validation.lotl.ThrowExceptionOnFailingCountryData
- All Implemented Interfaces:
-
IOnFailingCountryLotlData
This class implements the
IOnFailingCountryLotlData interface and provides a strategy for handling failures when fetching country-specific trusted list .
It throws an InvalidLotlDataException if the specific country fetch or the trusted lists validation fails.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonCountryFailure(CountrySpecificLotlFetcher.Result fetchResult) This method is called when the fetching of a country-specific Lotl fails.
-
Constructor Details
-
ThrowExceptionOnFailingCountryData
public ThrowExceptionOnFailingCountryData()Creates an instance ofThrowExceptionOnFailingCountryData.
-
-
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.Resultwill not be added to the trust store.- Specified by:
-
onCountryFailurein interfaceIOnFailingCountryLotlData - Parameters:
-
fetchResult- the result of the fetch attempt, which may contain error details
-