private String getAuthHeaderDecodedString(HttpServletRequest request) throws HttpAuthenticationException {
    String authHeaderBase64Str = getAuthHeader(request);
    try {
      return new String(Base64.getDecoder().decode(authHeaderBase64Str), StandardCharsets.UTF_8);
    } catch (IllegalArgumentException e) {
      // Auth header content is not base64 encoded
      throw new HttpAuthenticationException("Authorization header received " +
          "from the client does not contain base64 encoded data", e);
    }
  }
Retrieves password from http request
@param request The HTTP Servlet Request send by the client
@return String containing password
service/src/java/org/apache/hive/service/auth/HttpAuthService.java