/** * Create an instance of {@link XmlTrustedList } * */ public XmlTrustedList createXmlTrustedList() { return new XmlTrustedList(); }
private boolean isLastTL() { return currentTL.getNextUpdate() == null; }
@Override protected boolean process() { return currentTL.isWellSigned(); }
/** * This method returns the LOTL country code * * @return the country code of the used LOTL */ public String getLOTLCountryCode() { XmlTrustedList listOfTrustedLists = wrapped.getListOfTrustedLists(); if (listOfTrustedLists != null) { return listOfTrustedLists.getCountryCode(); } return null; }
@Override protected boolean process() { long maxFreshness = getMaxFreshness(); long validationDateTime = currentTime.getTime(); long limit = validationDateTime - maxFreshness; Date lastLoading = currentTL.getLastLoading(); return lastLoading != null && lastLoading.after(new Date(limit)); }
@Override protected boolean process() { if (!EIDASUtils.isPostGracePeriod(currentTime)) { return true; } String expectedVersionString = constraint.getValue(); int version = 5; // default eIDAS try { version = Integer.parseInt(expectedVersionString); } catch (NumberFormatException e) { LOG.warn("Unable to parse TLVersion constraint : '{}'", expectedVersionString); } Integer tlVersion = currentTL.getVersion(); return (tlVersion != null) && (tlVersion.intValue() == version); }
public TLValidationBlock(XmlTrustedList currentTL, Date currentTime, ValidationPolicy policy) { super(new XmlTLAnalysis()); result.setCountryCode(currentTL.getCountryCode()); this.currentTL = currentTL; this.currentTime = currentTime; this.policy = policy; }
@Override protected boolean process() { Date nextUpdate = currentTL.getNextUpdate(); return (nextUpdate != null) && (nextUpdate.after(currentTime)); }