code: public static boolean isRememberMeAuthentication(final Authentication model, final Assertion assertion) {
          val authnAttributes = model.getAttributes();
          val authnMethod = authnAttributes.get(RememberMeCredential.AUTHENTICATION_ATTRIBUTE_REMEMBER_ME);
          return authnMethod != null && authnMethod.contains(Boolean.TRUE) && assertion.isFromNewLogin();
      }
docs: Is remember me authentication?
  looks at the authentication object to find {@link RememberMeCredential#AUTHENTICATION_ATTRIBUTE_REMEMBER_ME}
  and expects the assertion to also note a new login session.
  
  @param model     the model
  @param assertion the assertion
  @return true if remember-me, false if otherwise.