Package org.apache.synapse.transport.http.conn

# 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 Summary

  Modifier and Type
  Method
  Description
  `void`
  `authenticatePreemptively(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)`
  Adds proxy authentication header to the request

- ## Method Details

  - ### 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`