public abstract class AbstractAuthenticationHandler extends java.lang.Object implements AuthenticationHandler
AuthenticationHandler
implementations.Constructor and Description |
---|
AbstractAuthenticationHandler() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List |
getAuthPreferences() |
protected java.util.Map |
parseChallenges(Header[] headers) |
AuthScheme |
selectScheme(java.util.Map challenges,
HttpResponse response,
HttpContext context)
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 java.util.Map parseChallenges(Header[] headers) throws MalformedChallengeException
MalformedChallengeException
protected java.util.List getAuthPreferences()
public AuthScheme selectScheme(java.util.Map 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.