I am trying to get a list of object names in the aws-publicdatasets bucket for commoncrawl. I have been looking at using Jets3t to createSignedGetUrl but I am not sure if I can get a list of the objects via the method below:
credentials = new AWSCredentials(accessId, secretId);
restS3Service = new RestS3Service(credentials);
restS3Service.setRequesterPaysEnabled(true);
Calendar cal = Calendar.getInstance();
cal.set(Calendar.HOUR, cal.get(Calendar.HOUR)+1);
Date expiryDate = new Date(cal.getTimeInMillis());
String getUrl = restS3Service.createSignedGetUrl(bucketName, null,
expiryDate, false);
S3Object obj = signedUrlHandler.getObjectWithSignedUrl(getUrl);