#18252 - [REQ] add sessionToken support to AWS4Auth (#18253)

This commit is contained in:
Mike Friesen
2024-04-10 22:56:40 -05:00
committed by GitHub
parent 44ae981830
commit 97c1dc8a1a
15 changed files with 197 additions and 0 deletions

View File

@@ -491,6 +491,19 @@ public class ApiClient {
throw new RuntimeException("No AWS4 authentication configured!");
}
/**
* Helper method to set credentials for AWSV4 Signature
*
* @param accessKey Access Key
* @param secretKey Secret Key
* @param sessionToken Session Token
* @param region Region
* @param service Service to access to
*/
public void setAWS4Configuration(String accessKey, String secretKey, String sessionToken, String region, String service) {
throw new RuntimeException("No AWS4 authentication configured!");
}
/**
* Set the User-Agent header's value (by adding to the default header map).
*