private String getTokenStr(String username, String id, String timestamp,
      String relayStateKey) {
    StringBuilder sb = new StringBuilder();
    sb.append(USER).append(SEPARATOR).append(username)
        .append(ATTR_SEPARATOR);
    sb.append(ID).append(SEPARATOR).append(id)
        .append(ATTR_SEPARATOR);
    sb.append(CREATE_TIME).append(SEPARATOR).append(timestamp).append(ATTR_SEPARATOR);
    sb.append(RELAY_STATE).append(SEPARATOR).append(relayStateKey);
    return sb.toString();
  }
A token is generated when the SAML assertion is successfully validated. This Token
is passed back to the client (Jdbc/ODBC Driver) via the browser. This token is
presented by the subsequent http request as a bearer token.
service/src/java/org/apache/hive/service/auth/saml/HiveSamlAuthTokenGenerator.java