Package org.apache.http.impl.client
Class DefaultTargetAuthenticationHandler
java.lang.Object
org.apache.http.impl.client.AbstractAuthenticationHandler
org.apache.http.impl.client.DefaultTargetAuthenticationHandler
- All Implemented Interfaces:
AuthenticationHandler
@Deprecated
@Contract(threading=IMMUTABLE)
public class DefaultTargetAuthenticationHandler
extends AbstractAuthenticationHandler
Deprecated.
Default
AuthenticationHandler implementation
for target host authentication.- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChallenges(HttpResponse response, 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(HttpResponse response, HttpContext context) Deprecated.Determines if the given HTTP response response represents an authentication challenge that was sent back as a result of authentication failureMethods inherited from class org.apache.http.impl.client.AbstractAuthenticationHandler
selectScheme
-
Constructor Details
-
DefaultTargetAuthenticationHandler
public DefaultTargetAuthenticationHandler()Deprecated.
-
-
Method Details
-
isAuthenticationRequested
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 Map<String,Header> getChallenges(HttpResponse response, HttpContext context) throws MalformedChallengeException Deprecated.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.
-
TargetAuthenticationStrategy