.class public Lorg/apache/http/impl/client/DefaultProxyAuthenticationHandler; .super Lorg/apache/http/impl/client/AbstractAuthenticationHandler; .source "DefaultProxyAuthenticationHandler.java" # annotations .annotation build Lorg/apache/http/annotation/Immutable; .end annotation # direct methods .method public constructor ()V .locals 0 .line 1 invoke-direct {p0}, Lorg/apache/http/impl/client/AbstractAuthenticationHandler;->()V return-void .end method # virtual methods .method public getChallenges(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Ljava/util/Map; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lorg/apache/http/HttpResponse;", "Lorg/apache/http/protocol/HttpContext;", ")", "Ljava/util/Map<", "Ljava/lang/String;", "Lorg/apache/http/Header;", ">;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Lorg/apache/http/auth/MalformedChallengeException; } .end annotation if-eqz p1, :cond_0 const-string p2, "Proxy-Authenticate" .line 1 invoke-interface {p1, p2}, Lorg/apache/http/HttpMessage;->getHeaders(Ljava/lang/String;)[Lorg/apache/http/Header; move-result-object p1 .line 2 invoke-virtual {p0, p1}, Lorg/apache/http/impl/client/AbstractAuthenticationHandler;->parseChallenges([Lorg/apache/http/Header;)Ljava/util/Map; move-result-object p1 return-object p1 .line 3 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; const-string p2, "HTTP response may not be null" invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public isAuthenticationRequested(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Z .locals 0 if-eqz p1, :cond_1 .line 1 invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine; move-result-object p1 invoke-interface {p1}, Lorg/apache/http/StatusLine;->getStatusCode()I move-result p1 const/16 p2, 0x197 if-ne p1, p2, :cond_0 const/4 p1, 0x1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 return p1 .line 2 :cond_1 new-instance p1, Ljava/lang/IllegalArgumentException; const-string p2, "HTTP response may not be null" invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method