}
public boolean isBucketAccessible(String bucketName) throws S3ServiceException {
log.debug("Checking existence of bucket: " + bucketName);
try {
AmazonS3SoapBindingStub s3SoapBinding = getSoapBinding();
Calendar timestamp = getTimeStamp( System.currentTimeMillis() );
String signature = ServiceUtils.signWithHmacSha1(getAWSSecretKey(),
Constants.SOAP_SERVICE_NAME + "ListBucket" + convertDateToString(timestamp));
s3SoapBinding.listBucket(
bucketName, null, null, new Integer(0),
null, getAWSAccessKey(), timestamp, signature, null);
// If we get this far, the bucket exists.
return true;