Class CountrySpecificLotlFetcher
java.lang.Object
com.itextpdf.signatures.validation.lotl.CountrySpecificLotlFetcher
This class fetches and validates country-specific List of Trusted Lists (LOTLs).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the result of fetching and validating country-specific LOTLs. -
Constructor Summary
ConstructorsConstructorDescriptionCountrySpecificLotlFetcher(LotlService service) Creates a new instance ofCountrySpecificLotlFetcher. -
Method Summary
Modifier and TypeMethodDescriptionprotected List<CountrySpecificLotlFetcher.Result>Creates an ExecutorService for downloading country-specific LOTLs.getAndValidateCountrySpecificLotlFiles(byte[] lotlXml, LotlService lotlService) Fetches and validates country-specific LOTLs from the provided LOTL XML.
-
Constructor Details
-
CountrySpecificLotlFetcher
Creates a new instance ofCountrySpecificLotlFetcher.- Parameters:
-
service- theLotlServiceused to retrieve resources
-
-
Method Details
-
getAndValidateCountrySpecificLotlFiles
public Map<String,CountrySpecificLotlFetcher.Result> getAndValidateCountrySpecificLotlFiles(byte[] lotlXml, LotlService lotlService) Fetches and validates country-specific LOTLs from the provided LOTL XML.- Parameters:
-
lotlXml- the byte array of the LOTL XML -
lotlService- theLotlServiceused to build this fetcher - Returns:
- a map of results containing validated country-specific LOTLs and their contexts
-
executeTasks
protected List<CountrySpecificLotlFetcher.Result> executeTasks(List<Callable<CountrySpecificLotlFetcher.Result>> tasks) Creates an ExecutorService for downloading country-specific LOTLs. By default, it creates a fixed thread pool with a number of threads equal to the number of available processors or the number of files to download, whichever is smaller. If you require a different configuration with other executor services, you can override this method.- Parameters:
-
tasks- the list of tasks to be executed - Returns:
- an ExecutorService instance configured for downloading LOTLs
-