Skip to content

Commit

Permalink
use builder
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbaker committed Aug 28, 2023
1 parent 69e9b15 commit 46e853c
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,14 @@ private static V4aProperties v4aProperties(SignRequest<?, ? extends AwsCredentia
boolean doubleUrlEncode = request.requireProperty(AwsV4HttpSigner.DOUBLE_URL_ENCODE, true);
boolean normalizePath = request.requireProperty(AwsV4HttpSigner.NORMALIZE_PATH, true);

return new V4aProperties(credentials,
credentialScope,
signingClock,
doubleUrlEncode,
normalizePath);
return V4aProperties
.builder()
.credentials(credentials)
.credentialScope(credentialScope)
.signingClock(signingClock)
.doubleUrlEncode(doubleUrlEncode)
.normalizePath(normalizePath)
.build();
}

private static V4aPayloadSigner v4aPayloadSigner(
Expand Down

0 comments on commit 46e853c

Please sign in to comment.