Package org.apache.http.impl.client
Class AbstractAuthenticationHandler
java.lang.Object
org.apache.http.impl.client.AbstractAuthenticationHandler
- All Implemented Interfaces:
AuthenticationHandler
- Direct Known Subclasses:
DefaultProxyAuthenticationHandler,DefaultTargetAuthenticationHandler
@Deprecated
@Contract(threading=IMMUTABLE)
public abstract class AbstractAuthenticationHandler
extends Object
implements AuthenticationHandler
Deprecated.
Base class for
AuthenticationHandler implementations.- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.private final org.apache.commons.logging.LogDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns default list of auth scheme names in their order of preference.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.parseChallenges(org.apache.http.Header[] headers) Deprecated.selectScheme(Map<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 generatesAuthSchemeinstance capable of processing that challenge.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.http.client.AuthenticationHandler
getChallenges, isAuthenticationRequested
-
Field Details
-
log
private final org.apache.commons.logging.Log logDeprecated. -
DEFAULT_SCHEME_PRIORITY
Deprecated.
-
-
Constructor Details
-
AbstractAuthenticationHandler
public AbstractAuthenticationHandler()Deprecated.
-
-
Method Details
-
parseChallenges
protected Map<String,org.apache.http.Header> parseChallenges(org.apache.http.Header[] headers) throws MalformedChallengeException Deprecated.- Throws:
MalformedChallengeException
-
getAuthPreferences
Deprecated.Returns default list of auth scheme names in their order of preference.- Returns:
- list of auth scheme names
-
getAuthPreferences
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.- Parameters:
response- HTTP response.context- HTTP execution context.- Since:
- 4.1
-
selectScheme
public AuthScheme selectScheme(Map<String, org.apache.http.Header> challenges, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws AuthenticationExceptionDeprecated.Description copied from interface:AuthenticationHandlerSelects one authentication challenge out of all available and creates and generatesAuthSchemeinstance capable of processing that challenge.- Specified by:
selectSchemein interfaceAuthenticationHandler- Parameters:
challenges- collection of challenges.response- HTTP response.context- HTTP context.- Returns:
- authentication scheme to use for authentication.
- Throws:
AuthenticationException- if an authentication scheme could not be selected.
-
AuthenticationStrategy