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
public abstract class AbstractAuthenticationHandler extends Object implements AuthenticationHandler
- Author:
- Oleg Kalnichevski
-
Constructor Summary
Constructors Constructor Description AbstractAuthenticationHandler() -
Method Summary
Modifier and Type Method Description protected List<String>getAuthPreferences()protected Map<String,Header>parseChallenges(Header[] headers)AuthSchemeselectScheme(Map<String,Header> challenges, HttpResponse response, HttpContext context)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
-
Constructor Details
-
AbstractAuthenticationHandler
public AbstractAuthenticationHandler()
-
-
Method Details
-
parseChallenges
- Throws:
MalformedChallengeException
-
getAuthPreferences
-
selectScheme
public AuthScheme selectScheme(Map<String,Header> challenges, HttpResponse response, HttpContext context) throws AuthenticationException- Specified by:
selectSchemein interfaceAuthenticationHandler- Throws:
AuthenticationException
-