Class CrtUtils
java.lang.Object
software.amazon.awssdk.http.auth.aws.crt.internal.util.CrtUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic SdkHttpRequestsanitizeRequest(SdkHttpRequest request) Sanitize anSdkHttpRequest, in order to prepare it for converting to a CRT request destined to be signed.static software.amazon.awssdk.crt.auth.credentials.CredentialstoCredentials(AwsCredentialsIdentity credentialsIdentity) Convert anAwsCredentialsIdentityto the CRT equivalent of credentials (Credentials).
-
Method Details
-
sanitizeRequest
Sanitize anSdkHttpRequest, in order to prepare it for converting to a CRT request destined to be signed.Sanitizing includes checking the path is not empty, filtering headers and query parameters that are forbidden in CRT, and adding the host header (overriding if already presesnt).
-
toCredentials
public static software.amazon.awssdk.crt.auth.credentials.Credentials toCredentials(AwsCredentialsIdentity credentialsIdentity) Convert anAwsCredentialsIdentityto the CRT equivalent of credentials (Credentials).
-