List<Header> requestHeader = new ArrayList<>();
requestHeader.add(new BasicHeader("Date", date));
requestHeader.add(new BasicHeader("Authorization", "AWS " + getConnectionCredentials().getIdentity() + ":" + signature));
String url = "https://" + (bucket == null ? "" : bucket + ".") + endpoint + path;
String rawResponse = HTTPUtils.openUrl(url, "GET", null, null, null, null, requestHeader, null);
JSON json = new XMLSerializer().read(rawResponse);
return (json instanceof JSONObject ? (JSONObject) json : null);
}