Interface ProxyAuthenticator

  • All Known Implementing Classes:
    DefaultProxyAuthenticator, ProfileProxyAuthenticator

    public interface ProxyAuthenticator
    If proxy server is configured with username and password, appropriate implementation of ProxyAuthenticator will be initialised based on the proxy configuration (profile / default)
    • Method Detail

      • authenticatePreemptively

        void authenticatePreemptively​(org.apache.http.HttpRequest request,
                                      org.apache.http.protocol.HttpContext context)
                               throws org.apache.http.auth.AuthenticationException
        Adds proxy authentication header to the request
        Parameters:
        request - out going request
        context - http context
        Throws:
        org.apache.http.auth.AuthenticationException