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 class
Represents 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
- the LotlService used 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
- theLotlService
used 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
-