Forum Discussion
It looks like you can get a library to calculate the signature: https://stackoverflow.com/questions/35985931/how-to-generate-signature-in-aws-from-java
aws-v4-signer-java is a lightweight, zero-dependency library that makes it easy to generate AWS V4 signatures.
String contentSha256 = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; HttpRequest request = new HttpRequest("GET", new URI("https://examplebucket.s3.amazonaws.com?max-keys=2&prefix=J")); String signature = Signer.builder() .awsCredentials(new AwsCredentials(ACCESS_KEY, SECRET_KEY)) .header("Host", "examplebucket.s3.amazonaws.com") .header("x-amz-date", "20130524T000000Z") .header("x-amz-content-sha256", contentSha256) .buildS3(request, contentSha256) .getSignature();
And in theory, it's just a case of adding an Authorization header with some calculated value.
However, the problem is still going to be that you need to calculate the signature based on each request itself, and that's based on the HttpRequest object. SoapUI automatically generates the HttpRequest and immediately sends it when it executes a Request, with no chance for you to write a script to modify it. So you'd have to modify SoapUI or send the HttpRequest in your own script.
Ultimately, it's probably not impossible, but very impractical to do it with SoapUI as it is. Not a lot of new features get added to the Open Source version, but who knows, somebody might volunteer to build it...
- sudeshkulal7 years agoNew Contributor
Thanks, JHunt.
Let me give a try and get back to you with some result.
Related Content
- 8 years ago
- 4 years ago
- 4 years ago
- 2 years ago
Recent Discussions
- 15 years ago