TargetAuthenticationStrategy
@Deprecated @Contract(threading=IMMUTABLE) public class DefaultTargetAuthenticationHandler extends AbstractAuthenticationHandler
AuthenticationHandler
implementation
for target host authentication.Constructor and Description |
---|
DefaultTargetAuthenticationHandler()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected List<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.
|
Map<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.
|
boolean |
isAuthenticationRequested(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
|
getAuthPreferences, parseChallenges, selectScheme
public DefaultTargetAuthenticationHandler()
public boolean isAuthenticationRequested(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
AuthenticationHandler
response
- HTTP response.context
- HTTP context.true
if user authentication is required,
false
otherwise.public Map<String,org.apache.http.Header> getChallenges(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws MalformedChallengeException
AuthenticationHandler
response
- HTTP response.context
- HTTP context.MalformedChallengeException
- if one of the authentication
challenges is not valid or malformed.protected List<String> getAuthPreferences(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
AbstractAuthenticationHandler
getAuthPreferences
in class AbstractAuthenticationHandler
response
- HTTP response.context
- HTTP execution context.Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.