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

  • 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