@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); }