Class PivotFetcher

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

public class PivotFetcher extends Object
This class fetches and validates pivot files from a List of Trusted Lists (Lotl) XML.
  • Constructor Details

    • PivotFetcher

      public PivotFetcher (LotlService service)
      Constructs a PivotFetcher with the specified LotlService and ValidatorChainBuilder.
      Parameters:
      service - the LotlService used to retrieve resources
  • Method Details

    • setCurrentJournalUri

      public void setCurrentJournalUri (String currentJournalUri)
      Sets String constant representing currently used Official Journal publication.
      Parameters:
      currentJournalUri - String constant representing currently used Official Journal publication
    • downloadAndValidatePivotFiles

      public PivotFetcher.Result downloadAndValidatePivotFiles (byte[] lotlXml, List<Certificate> certificates)
      Fetches and validates pivot files from the provided Lotl XML.
      Parameters:
      lotlXml - the byte array of the Lotl XML
      certificates - the list of trusted certificates
      Returns:
      a Result object containing the validation result and report items
    • getPivotsUrlList

      protected List<String> getPivotsUrlList (byte[] lotlXml)
      Gets list of pivots xml files, including OJ entries.
      Parameters:
      lotlXml - byte array representing main LOTL file
      Returns:
      list of pivots xml files, including OJ entries