code: public static boolean isCasAuthenticationOldForMaxAgeAuthorizationRequest(final WebContext context,
                                                                                final UserProfile profile) {
  
          val authTime = profile.getAttribute(CasProtocolConstants.VALIDATION_CAS_MODEL_ATTRIBUTE_NAME_AUTHENTICATION_DATE);
          if (authTime == null) {
              return false;
          }
          val dt = ZonedDateTime.parse(authTime.toString());
          return isCasAuthenticationOldForMaxAgeAuthorizationRequest(context, dt);
      }
docs: Is cas authentication old for max age authorization request?
  
  @param context the context
  @param profile the profile
  @return true/false