org.apache.http.impl.client
Class DefaultAuthenticationHandler

java.lang.Object
  extended by org.apache.http.impl.client.DefaultAuthenticationHandler
All Implemented Interfaces:
AuthenticationHandler

public class DefaultAuthenticationHandler
extends java.lang.Object
implements AuthenticationHandler

Author:
Oleg Kalnichevski

Constructor Summary
DefaultAuthenticationHandler()
           
 
Method Summary
 java.util.Map getProxyChallenges(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
           
 java.util.Map getTargetChallenges(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
           
 boolean isProxyAuthenticationRequested(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
           
 boolean isTargetAuthenticationRequested(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
           
protected  java.util.Map parseChallenges(org.apache.http.Header[] headers)
           
 AuthScheme selectScheme(java.util.Map 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
 

Constructor Detail

DefaultAuthenticationHandler

public DefaultAuthenticationHandler()
Method Detail

isTargetAuthenticationRequested

public boolean isTargetAuthenticationRequested(org.apache.http.HttpResponse response,
                                               org.apache.http.protocol.HttpContext context)
Specified by:
isTargetAuthenticationRequested in interface AuthenticationHandler

isProxyAuthenticationRequested

public boolean isProxyAuthenticationRequested(org.apache.http.HttpResponse response,
                                              org.apache.http.protocol.HttpContext context)
Specified by:
isProxyAuthenticationRequested in interface AuthenticationHandler

parseChallenges

protected java.util.Map parseChallenges(org.apache.http.Header[] headers)
                                 throws MalformedChallengeException
Throws:
MalformedChallengeException

getTargetChallenges

public java.util.Map getTargetChallenges(org.apache.http.HttpResponse response,
                                         org.apache.http.protocol.HttpContext context)
                                  throws MalformedChallengeException
Specified by:
getTargetChallenges in interface AuthenticationHandler
Throws:
MalformedChallengeException

getProxyChallenges

public java.util.Map getProxyChallenges(org.apache.http.HttpResponse response,
                                        org.apache.http.protocol.HttpContext context)
                                 throws MalformedChallengeException
Specified by:
getProxyChallenges in interface AuthenticationHandler
Throws:
MalformedChallengeException

selectScheme

public AuthScheme selectScheme(java.util.Map challenges,
                               org.apache.http.HttpResponse response,
                               org.apache.http.protocol.HttpContext context)
                        throws AuthenticationException
Specified by:
selectScheme in interface AuthenticationHandler
Throws:
AuthenticationException


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.