public boolean isValid() {
      return !status || (token != null && !token.isEmpty());
    }
A response is valid if the status is true with a non-empty token or
if status is false
jdbc/src/java/org/apache/hive/jdbc/saml/IJdbcBrowserClient.java