Class CountrySpecificLotlFetcher

java.lang.Object
com.itextpdf.signatures.validation.lotl.CountrySpecificLotlFetcher

public class CountrySpecificLotlFetcher extends Object
This class fetches and validates country-specific List of Trusted Lists (Lotls).
  • Constructor Details

    • CountrySpecificLotlFetcher

      public CountrySpecificLotlFetcher (LotlService service)
      Creates a new instance of CountrySpecificLotlFetcher.
      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 - the LotlService used to build this fetcher
      Returns:
      a map of results containing validated country-specific Lotls and their contexts
    • executeTasks

      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