Skip to content

Commit 2bceca5

Browse files
committed
Comments
1 parent 80636b1 commit 2bceca5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/fixtures/aws-fixture-utils/src/main/java/fixture/aws/AwsCredentialsUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ public enum AwsCredentialsUtils {
2424
;
2525

2626
/**
27-
* @return an authorization predicate that ensures the access key matches the given values.
27+
* @return an authorization predicate that ensures the authorization header matches the given access key, region and service name.
2828
*/
2929
public static BiPredicate<String, String> fixedAccessKey(String accessKey, String region, String service) {
3030
return mutableAccessKey(() -> accessKey, region, service);
3131
}
3232

3333
/**
3434
* @return an authorization predicate that ensures the authorization header matches the access key supplied by the given supplier,
35-
* and the given region and service name.
35+
* and also matches the given region and service name.
3636
*/
3737
public static BiPredicate<String, String> mutableAccessKey(Supplier<String> accessKeySupplier, String region, String service) {
3838
return (authorizationHeader, sessionTokenHeader) -> {
@@ -57,7 +57,7 @@ public static BiPredicate<String, String> mutableAccessKey(Supplier<String> acce
5757
}
5858

5959
/**
60-
* @return an authorization predicate that ensures the access key and session token both match the given values.
60+
* @return an authorization predicate that ensures the access key, session token, region and service name all match the given values.
6161
*/
6262
public static BiPredicate<String, String> fixedAccessKeyAndToken(String accessKey, String sessionToken, String region, String service) {
6363
Objects.requireNonNull(sessionToken);

0 commit comments

Comments
 (0)