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 SummaryModifier and TypeMethodDescriptionintThis method returns the maximum number of HTTP transactions permitted by the authentication method before authentication fails.getResponse(Map<String, String> challenge) Called when a challenge from the proxy is received.
- 
Method Details- 
getResponseCalled 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
 
- 
getMaximumConversationsint 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
 
 
-