/** * Gets DateTime for ZonedDateTime. * * @param time Time object to be converted. * @return DateTime representing time */ public static DateTime dateTimeOf(final ChronoZonedDateTime time) { return dateTimeOf(time.toInstant()); }
val dt = DateTimeUtils.zonedDateTimeOf(assertion.getValidUntilDate()); statement.setSessionNotOnOrAfter( DateTimeUtils.dateTimeOf(dt.plusSeconds(casProperties.getAuthn().getSamlIdp().getResponse().getSkewAllowance())));