Interface ProxyAuthenticator

  • All Implemented Interfaces:

    
    public interface ProxyAuthenticator
    
                        

    Provides credentials when an HTTP proxy responds with 407 Proxy Authentication Required.

    Implementations inspect the 407 response (typically its Proxy-Authenticate header) and return the request to retry with a Proxy-Authorization header set, or Optional.empty to abandon authentication and surface the 407 to the caller.

    Implementations must be thread-safe; they may be invoked concurrently from multiple HTTP calls.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<HttpRequest> authenticate(Proxy proxy, HttpRequest request, HttpResponse response)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait