Reputation: 367
I am trying to perform some S3 operations (like create bucket, get bucket, put object, list object etc) with V4 authentication using Query parameter as Authentication method. I want to perform the operation using AWS JAVA SDKs
Question- 1. Does AWS JAVA SDK support Query parameter as Authentication method?If yes which package needs to be imported. 2. Any example of how to do that using AWS JAVA SDK will be greatly appreciated
Upvotes: 1
Views: 325
Reputation: 66099
You can generate pre-signed URL requests to access s3 resources using query parameter authentication. Here's how to do it with the Java SDK:
URL url = s3Client.generatePresignedUrl(bucketName, key, expirationDate);
I've only used it successfully with GET requests.
Upvotes: 0