java.lang.Object
software.amazon.awssdk.http.auth.aws.crt.internal.util.CrtUtils

public final class CrtUtils extends Object
  • Method Details

    • sanitizeRequest

      public static SdkHttpRequest sanitizeRequest(SdkHttpRequest request)
      Sanitize an 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).

    • toCredentials

      public static software.amazon.awssdk.crt.auth.credentials.Credentials toCredentials(AwsCredentialsIdentity credentialsIdentity)
      Convert an AwsCredentialsIdentity to the CRT equivalent of credentials (Credentials).