@Override
  protected void addHttpAuthHeader(HttpRequest httpRequest, HttpContext httpContext)
      throws Exception {
    Header basicAuthHeader = authScheme.authenticate(credentials, httpRequest, httpContext);
    httpRequest.addHeader(basicAuthHeader);
  }
The class is instantiated with the username and password, it is then used to add header with
these credentials to HTTP requests
jdbc/src/java/org/apache/hive/jdbc/HttpBasicAuthInterceptor.java