Class BearerTokenSigner

  • All Implemented Interfaces:
    Signer

    public final class BearerTokenSigner
    extends Object
    implements Signer
    A Signer that will sign a request with Bearer token authorization.
    • Constructor Detail

      • BearerTokenSigner

        public BearerTokenSigner()
    • Method Detail

      • sign

        public SdkHttpFullRequest sign​(SdkHttpFullRequest request,
                                       TokenSignerParams signerParams)
        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)
        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.