Package org.apache.http.impl.client
Class DefaultProxyAuthenticationHandler
- java.lang.Object
-
- org.apache.http.impl.client.AbstractAuthenticationHandler
-
- org.apache.http.impl.client.DefaultProxyAuthenticationHandler
-
- All Implemented Interfaces:
AuthenticationHandler
@Deprecated @Contract(threading=IMMUTABLE) public class DefaultProxyAuthenticationHandler extends AbstractAuthenticationHandler
Deprecated.(4.2) useProxyAuthenticationStrategyDefaultAuthenticationHandlerimplementation for proxy host authentication.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description DefaultProxyAuthenticationHandler()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.util.List<java.lang.String>getAuthPreferences(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)Deprecated.Returns default list of auth scheme names in their order of preference based on the HTTP response and the current execution context.java.util.Map<java.lang.String,org.apache.http.Header>getChallenges(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)Deprecated.Extracts from the given HTTP response a collection of authentication challenges, each of which represents an authentication scheme supported by the authentication host.booleanisAuthenticationRequested(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)Deprecated.Determines if the given HTTP response response represents an authentication challenge that was sent back as a result of authentication failure-
Methods inherited from class org.apache.http.impl.client.AbstractAuthenticationHandler
getAuthPreferences, parseChallenges, selectScheme
-
-
-
-
Method Detail
-
isAuthenticationRequested
public boolean isAuthenticationRequested(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)Deprecated.Description copied from interface:AuthenticationHandlerDetermines if the given HTTP response response represents an authentication challenge that was sent back as a result of authentication failure- Parameters:
response- HTTP response.context- HTTP context.- Returns:
trueif user authentication is required,falseotherwise.
-
getChallenges
public java.util.Map<java.lang.String,org.apache.http.Header> getChallenges(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws MalformedChallengeExceptionDeprecated.Description copied from interface:AuthenticationHandlerExtracts from the given HTTP response a collection of authentication challenges, each of which represents an authentication scheme supported by the authentication host.- Parameters:
response- HTTP response.context- HTTP context.- Returns:
- a collection of challenges keyed by names of corresponding authentication schemes.
- Throws:
MalformedChallengeException- if one of the authentication challenges is not valid or malformed.
-
getAuthPreferences
protected java.util.List<java.lang.String> getAuthPreferences(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)Deprecated.Description copied from class:AbstractAuthenticationHandlerReturns default list of auth scheme names in their order of preference based on the HTTP response and the current execution context.- Overrides:
getAuthPreferencesin classAbstractAuthenticationHandler- Parameters:
response- HTTP response.context- HTTP execution context.
-
-