FileDocCategorySizeDatePackage
DefaultTargetAuthenticationHandler.javaAPI DocAndroid 1.5 API2760Wed May 06 22:41:10 BST 2009org.apache.http.impl.client

DefaultTargetAuthenticationHandler

public class DefaultTargetAuthenticationHandler extends AbstractAuthenticationHandler
author
Oleg Kalnichevski

Fields Summary
Constructors Summary
public DefaultTargetAuthenticationHandler()

        super();
    
Methods Summary
public java.util.MapgetChallenges(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)

        if (response == null) {
            throw new IllegalArgumentException("HTTP response may not be null");
        }
        Header[] headers = response.getHeaders(AUTH.WWW_AUTH);
        return parseChallenges(headers);
    
public booleanisAuthenticationRequested(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)

        if (response == null) {
            throw new IllegalArgumentException("HTTP response may not be null");
        }
        int status = response.getStatusLine().getStatusCode();
        return status == HttpStatus.SC_UNAUTHORIZED;