TargetAuthenticationStrategy@Deprecated @Immutable public class DefaultTargetAuthenticationHandler extends AbstractAuthenticationHandler
AuthenticationHandler implementation for target host
authentication.| 构造器和说明 |
|---|
DefaultTargetAuthenticationHandler()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected java.util.List<java.lang.String> |
getAuthPreferences(HttpResponse response,
HttpContext context)
已过时。
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,Header> |
getChallenges(HttpResponse response,
HttpContext context)
已过时。
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(HttpResponse response,
HttpContext context)
已过时。
Determines if the given HTTP response response represents
an authentication challenge that was sent back as a result
of authentication failure
|
getAuthPreferences, parseChallenges, selectSchemepublic boolean isAuthenticationRequested(HttpResponse response, HttpContext context)
AuthenticationHandlerresponse - HTTP response.context - HTTP context.true if user authentication is required,
false otherwise.public java.util.Map<java.lang.String,Header> getChallenges(HttpResponse response, HttpContext context) throws MalformedChallengeException
AuthenticationHandlerresponse - HTTP response.context - HTTP context.MalformedChallengeException - if one of the authentication
challenges is not valid or malformed.protected java.util.List<java.lang.String> getAuthPreferences(HttpResponse response, HttpContext context)
AbstractAuthenticationHandlergetAuthPreferences 在类中 AbstractAuthenticationHandlerresponse - HTTP response.context - HTTP execution context.