@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); }
@Override protected boolean process() { String contentType = signature.getContentType(); String expectedValue = constraint.getValue(); return processValueCheck(contentType, expectedValue); }
@Override protected boolean process() { String contentIdentifier = signature.getContentIdentifier(); String expected = constraint.getValue(); return processValueCheck(contentIdentifier, expected); }
@Override protected boolean process() { String contentType = signature.getContentHints(); String expectedValue = constraint.getValue(); return processValueCheck(contentType, expectedValue); }