Class AbstractParsingTask<T extends AbstractParsingResult>

java.lang.Object
eu.europa.esig.dss.tsl.parsing.AbstractParsingTask<T>
Type Parameters:
T - implementation of a corresponding parsing task (TL/LOTL)
All Implemented Interfaces:
Supplier<T>
Direct Known Subclasses:
LOTLParsingTask, TLParsingTask

public abstract class AbstractParsingTask<T extends AbstractParsingResult> extends Object implements Supplier<T>
Abstract class to parse a LOTL/TL
  • Constructor Details

    • AbstractParsingTask

      protected AbstractParsingTask(eu.europa.esig.dss.model.DSSDocument document)
      Default constructor
      Parameters:
      document - DSSDocument
  • Method Details

    • getJAXBObject

      protected eu.europa.esig.trustedlist.jaxb.tsl.TrustStatusListType getJAXBObject()
      Gets the TrustStatusListType
      Returns:
      TrustStatusListType
    • createTrustedListFacade

      protected eu.europa.esig.trustedlist.TrustedListFacade createTrustedListFacade()
      This method loads a TrustedListFacade
      Returns:
      TrustedListFacade
    • commonParseSchemeInformation

      protected void commonParseSchemeInformation(AbstractParsingResult result, eu.europa.esig.trustedlist.jaxb.tsl.TSLSchemeInformationType schemeInformation)
      Extracts the common values
      Parameters:
      result - AbstractParsingResult
      schemeInformation - TSLSchemeInformationType
    • verifyTLVersionConformity

      protected void verifyTLVersionConformity(AbstractParsingResult result, Integer tlVersion, List<Integer> tlVersions)
      Verifies the structure conformity of the Trusted List corresponding to its schema version
      Parameters:
      result - AbstractParsingResult
      tlVersion - Integer TL version to verify against
      tlVersions - a list of Integers representing a list of TL versions to be supported and validated