Class AwsSigningResult

java.lang.Object
software.amazon.awssdk.crt.auth.signing.AwsSigningResult

public class AwsSigningResult extends Object
Wrapper that holds signing-related output. Depending on the signing configuration, not all members may be assigned and some members, like signature, may have a variable format.
  • Constructor Details

    • AwsSigningResult

      public AwsSigningResult()
      Default constructor
  • Method Details

    • getSignedRequest

      public HttpRequest getSignedRequest()
      Gets the signed http request from the result
      Returns:
      the signed http request, or NULL if an http request was not signed
    • getSignature

      public byte[] getSignature()
      Gets the signature value from the result. Depending on the requested signature type and algorithm, this value will be in one of the following formats: (1) HTTP_REQUEST_VIA_HEADERS - hex encoding of the binary signature value (2) HTTP_REQUEST_VIA_QUERY_PARAMS - hex encoding of the binary signature value (3) HTTP_REQUEST_CHUNK/SIGV4 - hex encoding of the binary signature value (4) HTTP_REQUEST_CHUNK/SIGV4_ASYMMETRIC - '*'-padded hex encoding of the binary signature value (5) HTTP_REQUEST_EVENT - binary signature value (NYI)
      Returns:
      the signature value from the signing process