public final class CrtUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static SdkHttpRequest |
sanitizeRequest(SdkHttpRequest request)
Sanitize an
SdkHttpRequest, in order to prepare it for converting to a CRT request destined to be signed. |
static software.amazon.awssdk.crt.auth.credentials.Credentials |
toCredentials(AwsCredentialsIdentity credentialsIdentity)
Convert an
AwsCredentialsIdentity to the CRT equivalent of credentials (Credentials). |
public static SdkHttpRequest sanitizeRequest(SdkHttpRequest request)
SdkHttpRequest, 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).
public static software.amazon.awssdk.crt.auth.credentials.Credentials toCredentials(AwsCredentialsIdentity credentialsIdentity)
AwsCredentialsIdentity to the CRT equivalent of credentials (Credentials).Copyright © 2023. All rights reserved.