AuthenticationStrategy
@Deprecated @Immutable public abstract class AbstractAuthenticationHandler extends Object implements AuthenticationHandler
AuthenticationHandler
implementations.Constructor and Description |
---|
AbstractAuthenticationHandler()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected List<String> |
getAuthPreferences()
Deprecated.
Returns default list of auth scheme names in their order of preference.
|
protected List<String> |
getAuthPreferences(HttpResponse response,
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 Map<String,Header> |
parseChallenges(Header[] headers)
Deprecated.
|
AuthScheme |
selectScheme(Map<String,Header> challenges,
HttpResponse response,
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, wait
getChallenges, isAuthenticationRequested
protected Map<String,Header> parseChallenges(Header[] headers) throws MalformedChallengeException
MalformedChallengeException
protected List<String> getAuthPreferences()
protected List<String> getAuthPreferences(HttpResponse response, HttpContext context)
response
- HTTP response.context
- HTTP execution context.public AuthScheme selectScheme(Map<String,Header> challenges, HttpResponse response, HttpContext context) throws AuthenticationException
AuthenticationHandler
AuthScheme
instance capable of
processing that challenge.selectScheme
in interface AuthenticationHandler
challenges
- collection of challenges.response
- HTTP response.context
- HTTP context.AuthenticationException
- if an authentication scheme
could not be selected.Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.