Interface ProxyAuthGenerator

All Known Implementing Classes:
BasicProxyAuthGenerator, NegotiateProxyAuthGenerator

@SdkInternalApi public interface ProxyAuthGenerator
Generates the auth params for an Authorization HTTP header.
  • Method Details

    • scheme

      ProxyAuthScheme scheme()
      The name of the auth scheme this generator supports.
    • generateAuthParams

      CompletableFuture<String> generateAuthParams(URI proxyEndpoint)
      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.