public class DefaultProxyAuthenticationHandler extends AbstractAuthenticationHandler
AuthenticationHandler
implementation for proxy host
authentication.Constructor and Description |
---|
DefaultProxyAuthenticationHandler() |
Modifier and Type | Method and Description |
---|---|
java.util.Map |
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, selectScheme
public boolean isAuthenticationRequested(HttpResponse response, HttpContext context)
AuthenticationHandler
response
- HTTP response.context
- HTTP context.true
if user authentication is required,
false
otherwise.public java.util.Map getChallenges(HttpResponse response, HttpContext context) throws MalformedChallengeException
AuthenticationHandler
response
- HTTP response.context
- HTTP context.MalformedChallengeException
- if one of the authentication
challenges is not valid or malformed.