Class CrtUtils
- java.lang.Object
-
- software.amazon.awssdk.http.auth.aws.crt.internal.util.CrtUtils
-
public final class CrtUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
sanitizeRequest
public static SdkHttpRequest sanitizeRequest(SdkHttpRequest request)
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
-
toCredentials
public static software.amazon.awssdk.crt.auth.credentials.Credentials toCredentials(AwsCredentialsIdentity credentialsIdentity)
Convert anAwsCredentialsIdentityto the CRT equivalent of credentials (Credentials).
-
-