@@ -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