Module jpms_dss_tsl_validation
Package eu.europa.esig.dss.tsl.parsing
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 Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractParsingTask(eu.europa.esig.dss.model.DSSDocument document) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcommonParseSchemeInformation(AbstractParsingResult result, eu.europa.esig.trustedlist.jaxb.tsl.TSLSchemeInformationType schemeInformation) Extracts the common valuesprotected eu.europa.esig.trustedlist.TrustedListFacadeThis method loads aTrustedListFacadeprotected eu.europa.esig.trustedlist.jaxb.tsl.TrustStatusListTypeGets theTrustStatusListTypeprotected voidverifyTLVersionConformity(AbstractParsingResult result, Integer tlVersion, List<Integer> tlVersions) Verifies the structure conformity of the Trusted List corresponding to its schema version
-
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 theTrustStatusListType- Returns:
TrustStatusListType
-
createTrustedListFacade
protected eu.europa.esig.trustedlist.TrustedListFacade createTrustedListFacade()This method loads aTrustedListFacade- Returns:
TrustedListFacade
-
commonParseSchemeInformation
protected void commonParseSchemeInformation(AbstractParsingResult result, eu.europa.esig.trustedlist.jaxb.tsl.TSLSchemeInformationType schemeInformation) Extracts the common values- Parameters:
result-AbstractParsingResultschemeInformation-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-AbstractParsingResulttlVersion-IntegerTL version to verify againsttlVersions- a list ofIntegers representing a list of TL versions to be supported and validated
-