AuthenticationStrategy@Deprecated @Contract(threading=IMMUTABLE) public abstract class AbstractAuthenticationHandler extends java.lang.Object implements AuthenticationHandler
AuthenticationHandler implementations.| Modifier and Type | Field and Description |
|---|---|
private static java.util.List<java.lang.String> |
DEFAULT_SCHEME_PRIORITY
Deprecated.
|
private org.apache.commons.logging.Log |
log
Deprecated.
|
| Constructor and Description |
|---|
AbstractAuthenticationHandler()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<java.lang.String> |
getAuthPreferences()
Deprecated.
Returns default list of auth scheme names in their order of preference.
|
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.
|
protected java.util.Map<java.lang.String,org.apache.http.Header> |
parseChallenges(org.apache.http.Header[] headers)
Deprecated.
|
AuthScheme |
selectScheme(java.util.Map<java.lang.String,org.apache.http.Header> challenges,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
Deprecated.
Selects one authentication challenge out of all available and
creates and generates
AuthScheme instance capable of
processing that challenge. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChallenges, isAuthenticationRequestedprivate final org.apache.commons.logging.Log log
private static final java.util.List<java.lang.String> DEFAULT_SCHEME_PRIORITY
protected java.util.Map<java.lang.String,org.apache.http.Header> parseChallenges(org.apache.http.Header[] headers)
throws MalformedChallengeException
MalformedChallengeExceptionprotected java.util.List<java.lang.String> getAuthPreferences()
protected java.util.List<java.lang.String> getAuthPreferences(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
response - HTTP response.context - HTTP execution context.public AuthScheme selectScheme(java.util.Map<java.lang.String,org.apache.http.Header> challenges, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws AuthenticationException
AuthenticationHandlerAuthScheme instance capable of
processing that challenge.selectScheme in interface AuthenticationHandlerchallenges - collection of challenges.response - HTTP response.context - HTTP context.AuthenticationException - if an authentication scheme
could not be selected.