code: public static boolean isCasAuthenticationOldForMaxAgeAuthorizationRequest(final WebContext context,
                                                                                final ZonedDateTime authenticationDate) {
          val maxAge = getOidcMaxAgeFromAuthorizationRequest(context);
          if (maxAge.isPresent() && maxAge.get() > 0) {
              val now = ZonedDateTime.now(ZoneOffset.UTC).toEpochSecond();
              val authTime = authenticationDate.toEpochSecond();
              val diffInSeconds = now - authTime;
              if (diffInSeconds > maxAge.get()) {
                  LOGGER.info("Authentication is too old: [{}] and was created [{}] seconds ago.",
                      authTime, diffInSeconds);
                  return true;
              }
          }
          return false;
      }
docs: Is cas authentication old for max age authorization request boolean.
  
  @param context            the context
  @param authenticationDate the authentication date
  @return true/false