Class BasicProxyAuthGenerator

java.lang.Object
software.amazon.awssdk.http.nio.netty.internal.BasicProxyAuthGenerator
All Implemented Interfaces:
ProxyAuthGenerator

@SdkInternalApi public class BasicProxyAuthGenerator extends Object implements ProxyAuthGenerator
Auth param generator for Basic proxy authentication.

See https://datatracker.ietf.org/doc/html/rfc7617.

  • Constructor Details

    • BasicProxyAuthGenerator

      public BasicProxyAuthGenerator(String username, String password)
  • Method Details

    • scheme

      public ProxyAuthScheme scheme()
      Description copied from interface: ProxyAuthGenerator
      The name of the auth scheme this generator supports.
      Specified by:
      scheme in interface ProxyAuthGenerator
    • generateAuthParams

      public CompletableFuture<String> generateAuthParams(URI proxyEndpoint)
      Description copied from interface: ProxyAuthGenerator
      Generate the auth params for this request.

      This is asynchronous because generating the params may block - Kerberos, for example, may need to read the ticket cache from disk and contact the KDC. Implementations that block MUST complete the returned future from a thread other than the caller's; the caller is a Netty event loop thread, and blocking it would stall every other channel assigned to that loop.

      Specified by:
      generateAuthParams in interface ProxyAuthGenerator