code: private static EsToken getEsAuthToken(ClusterName clusterName, User user) {
          return user.getEsToken(clusterName.getName());
      }
docs: Get the authentication token of the user for the provided cluster name in its ES-Hadoop specific form.
  @return null if the user does not have the token, otherwise the auth token for the cluster.