// Construct an authorized service.
RestS3Service service = new RestS3Service(awsCredentials);
// List objects in the configured bucket.
S3Object[] objects = service.listObjects(s3BucketName, prefix, null, 1000);
// Package object information in SignatureRequest objects. This data will be
// automatically encoded and sent across the wire back to the client.
for (int i = 0; i < objects.length; i++) {
SignatureRequest sr = new SignatureRequest();