DateTime notOnOrAfterDate = Util.parseDateTime(naAttribute.getNodeValue()); notOnOrAfterDate = notOnOrAfterDate.plus(Constants.ALOWED_CLOCK_DRIFT * 1000); if (notOnOrAfterDate.isEqualNow() || notOnOrAfterDate.isBeforeNow()) { throw new ValidationError("Could not validate timestamp: expired. Check system clock.", ValidationError.ASSERTION_EXPIRED);
if (noa.isEqualNow() || noa.isBeforeNow()) { validationIssues.add(new SubjectConfirmationIssue(i, "SubjectConfirmationData is no longer valid")); continue;
String notOnOrAfter = rootElement.getAttribute("NotOnOrAfter"); DateTime notOnOrAfterDate = Util.parseDateTime(notOnOrAfter); if (notOnOrAfterDate.isEqualNow() || notOnOrAfterDate.isBeforeNow()) { throw new ValidationError("Could not validate timestamp: expired. Check system clock.", ValidationError.RESPONSE_EXPIRED);
public boolean isOnCurrentPeriod() { boolean isOnCurrentPeriod = false; if (getCalendarEntry() != null) { DateTime beginPeriodDateTime = getCalendarEntry().getBeginPeriodFullDateTime(); DateTime endPeriodDateTime = getCalendarEntry().getEndPeriodFullDateTime(); isOnCurrentPeriod = (beginPeriodDateTime.isEqualNow() || beginPeriodDateTime.isBeforeNow()) && endPeriodDateTime.isAfterNow(); } return isOnCurrentPeriod; }
public boolean isOnCurrentPeriod() { boolean isOnCurrentPeriod = false; if (getCalendarEntry() != null) { DateTime beginPeriodDateTime = getCalendarEntry().getBeginPeriodFullDateTime(); DateTime endPeriodDateTime = getCalendarEntry().getEndPeriodFullDateTime(); isOnCurrentPeriod = (beginPeriodDateTime.isEqualNow() || beginPeriodDateTime.isBeforeNow()) && endPeriodDateTime.isAfterNow(); } return isOnCurrentPeriod; }
if (sessionExpiration != null) { sessionExpiration = sessionExpiration.plus(Constants.ALOWED_CLOCK_DRIFT * 1000); if (sessionExpiration.isEqualNow() || sessionExpiration.isBeforeNow()) { throw new ValidationError("The attributes have expired, based on the SessionNotOnOrAfter of the AttributeStatement of this Response", ValidationError.SESSION_EXPIRED);