Interface HTTPProxyAuthentication.ChallengeHandler

Enclosing interface:
HTTPProxyAuthentication

public static interface HTTPProxyAuthentication.ChallengeHandler
Allows for an authentication implementation to be provided for connections routed via HTTP proxies.

The ChallengeHandler should read HTTP headers from a 401 or 407 challenge and formulate a response.

  • Method Summary

    Modifier and Type
    Method
    Description
    int
    This method returns the maximum number of HTTP transactions permitted by the authentication method before authentication fails.
    Called when a challenge from the proxy is received.
  • Method Details

    • getResponse

      Map<String,String> getResponse(Map<String,String> challenge)
      Called when a challenge from the proxy is received. The authenticator will return a response to the challenge.
      Parameters:
      challenge - a map of the HTTP headers corresponding to the challenge received from the proxy
      Returns:
      a map of HTTP headers in response to the challenge
    • getMaximumConversations

      int getMaximumConversations()
      This method returns the maximum number of HTTP transactions permitted by the authentication method before authentication fails.
      Returns:
      the maximum number of HTTP transactions