Class BearerTokenSigner

java.lang.Object
software.amazon.awssdk.auth.token.signer.aws.BearerTokenSigner
All Implemented Interfaces:
Signer

@Deprecated public final class BearerTokenSigner extends Object implements Signer
Deprecated.
Use software.amazon.awssdk.http.auth.signer.BearerHttpSigner from the 'http-auth' module.
A Signer that will sign a request with Bearer token authorization.
  • Constructor Details

    • BearerTokenSigner

      public BearerTokenSigner()
      Deprecated.
  • Method Details

    • create

      public static BearerTokenSigner create()
      Deprecated.
    • credentialType

      public CredentialType credentialType()
      Deprecated.
      Description copied from interface: Signer
      Method that retrieves CredentialType i.e. the type of Credentials used by the Signer while authorizing a request.
      Specified by:
      credentialType in interface Signer
      Returns:
      null by default else return CredentialType as defined by the signer implementation.
    • sign

      public SdkHttpFullRequest sign(SdkHttpFullRequest request, TokenSignerParams signerParams)
      Deprecated.
      Signs the request by adding an 'Authorization' header containing the string value of the token in accordance with RFC 6750, section 2.1.
      Parameters:
      request - The request to sign
      signerParams - Contains the attributes required for signing the request
      Returns:
      The signed request.
    • sign

      public SdkHttpFullRequest sign(SdkHttpFullRequest request, ExecutionAttributes executionAttributes)
      Deprecated.
      Signs the request by adding an 'Authorization' header containing the string value of the token in accordance with RFC 6750, section 2.1.
      Specified by:
      sign in interface Signer
      Parameters:
      request - The request to sign
      executionAttributes - Contains the execution attributes required for signing the request
      Returns:
      The signed request.