Class ProfileProxyAuthenticator

  • All Implemented Interfaces:
    ProxyAuthenticator

    public class ProfileProxyAuthenticator
    extends Object
    implements ProxyAuthenticator
    ProfileProxyAuthenticator will be initialized when proxy profile is configured
    • Constructor Detail

      • ProfileProxyAuthenticator

        public ProfileProxyAuthenticator​(ProxyConfig proxyConfig)
                                  throws org.apache.http.auth.MalformedChallengeException
        Throws:
        org.apache.http.auth.MalformedChallengeException
    • Method Detail

      • authenticatePreemptively

        public void authenticatePreemptively​(org.apache.http.HttpRequest request,
                                             org.apache.http.protocol.HttpContext context)
                                      throws org.apache.http.auth.AuthenticationException
        this will add authentication header to the request
        Specified by:
        authenticatePreemptively in interface ProxyAuthenticator
        Parameters:
        request - outgoing http request
        context - http context
        Throws:
        org.apache.http.auth.AuthenticationException