org.apache.http.impl.client
Class AbstractAuthenticationHandler

java.lang.Object
  extended by org.apache.http.impl.client.AbstractAuthenticationHandler
All Implemented Interfaces:
AuthenticationHandler
Direct Known Subclasses:
DefaultProxyAuthenticationHandler, DefaultTargetAuthenticationHandler

public abstract class AbstractAuthenticationHandler
extends java.lang.Object
implements AuthenticationHandler

Author:
Oleg Kalnichevski

Constructor Summary
AbstractAuthenticationHandler()
           
 
Method Summary
protected  java.util.List<java.lang.String> getAuthPreferences()
           
protected  java.util.Map<java.lang.String,org.apache.http.Header> parseChallenges(org.apache.http.Header[] headers)
           
 AuthScheme selectScheme(java.util.Map<java.lang.String,org.apache.http.Header> challenges, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.http.client.AuthenticationHandler
getChallenges, isAuthenticationRequested
 

Constructor Detail

AbstractAuthenticationHandler

public AbstractAuthenticationHandler()
Method Detail

parseChallenges

protected java.util.Map<java.lang.String,org.apache.http.Header> parseChallenges(org.apache.http.Header[] headers)
                                                                          throws MalformedChallengeException
Throws:
MalformedChallengeException

getAuthPreferences

protected java.util.List<java.lang.String> getAuthPreferences()

selectScheme

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
Specified by:
selectScheme in interface AuthenticationHandler
Throws:
AuthenticationException


Copyright © 1999-2008 Apache Software Foundation. All Rights Reserved.