protected S3Bucket[] listAllBucketsImpl() throws S3ServiceException {
log.debug("Listing all buckets for AWS user: " + getAWSCredentials().getAccessKey());
S3Bucket[] buckets = null;
try {
AmazonS3SoapBindingStub s3SoapBinding = getSoapBinding();
Calendar timestamp = getTimeStamp( System.currentTimeMillis() );
String signature = ServiceUtils.signWithHmacSha1(getAWSSecretKey(),
Constants.SOAP_SERVICE_NAME + "ListAllMyBuckets" + convertDateToString(timestamp));
ListAllMyBucketsResult result = s3SoapBinding.listAllMyBuckets(
getAWSAccessKey(), timestamp, signature);
ListAllMyBucketsEntry[] entries = result.getBuckets();
buckets = new S3Bucket[entries.length];
int index = 0;