.class public final Lokhttp3/Challenge; .super Ljava/lang/Object; .source "Challenge.kt" # annotations .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u00002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0003\n\u0002\u0010$\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0002\u0008\u0005\u0018\u00002\u00020\u0001B\u0017\u0008\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0005B#\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0014\u0010\u0006\u001a\u0010\u0012\u0006\u0012\u0004\u0018\u00010\u0003\u0012\u0004\u0012\u00020\u00030\u0007\u00a2\u0006\u0002\u0010\u0008J\u001b\u0010\u0006\u001a\u0010\u0012\u0006\u0012\u0004\u0018\u00010\u0003\u0012\u0004\u0012\u00020\u00030\u0007H\u0007\u00a2\u0006\u0002\u0008\u000eJ\r\u0010\n\u001a\u00020\u000bH\u0007\u00a2\u0006\u0002\u0008\u000fJ\u0013\u0010\u0010\u001a\u00020\u00112\u0008\u0010\u0012\u001a\u0004\u0018\u00010\u0001H\u0096\u0002J\u0008\u0010\u0013\u001a\u00020\u0014H\u0016J\u000f\u0010\u0004\u001a\u0004\u0018\u00010\u0003H\u0007\u00a2\u0006\u0002\u0008\u0015J\r\u0010\u0002\u001a\u00020\u0003H\u0007\u00a2\u0006\u0002\u0008\u0016J\u0008\u0010\u0017\u001a\u00020\u0003H\u0016J\u000e\u0010\u0018\u001a\u00020\u00002\u0006\u0010\n\u001a\u00020\u000bR!\u0010\u0006\u001a\u0010\u0012\u0006\u0012\u0004\u0018\u00010\u0003\u0012\u0004\u0012\u00020\u00030\u00078G\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0006\u0010\tR\u0011\u0010\n\u001a\u00020\u000b8G\u00a2\u0006\u0006\u001a\u0004\u0008\n\u0010\u000cR\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u00038G\u00a2\u0006\u0006\u001a\u0004\u0008\u0004\u0010\rR\u0013\u0010\u0002\u001a\u00020\u00038\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0002\u0010\r\u00a8\u0006\u0019" } d2 = { "Lokhttp3/Challenge;", "", "scheme", "", "realm", "(Ljava/lang/String;Ljava/lang/String;)V", "authParams", "", "(Ljava/lang/String;Ljava/util/Map;)V", "()Ljava/util/Map;", "charset", "Ljava/nio/charset/Charset;", "()Ljava/nio/charset/Charset;", "()Ljava/lang/String;", "-deprecated_authParams", "-deprecated_charset", "equals", "", "other", "hashCode", "", "-deprecated_realm", "-deprecated_scheme", "toString", "withCharset", "okhttp" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # instance fields .field private final authParams:Ljava/util/Map; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/lang/String;", ">;" } .end annotation .end field .field private final scheme:Ljava/lang/String; # direct methods .method public constructor (Ljava/lang/String;Ljava/lang/String;)V .locals 1 const-string v0, "scheme" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "realm" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 58 invoke-static {v0, p2}, Ljava/util/Collections;->singletonMap(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map; move-result-object p2 const-string v0, "singletonMap(\"realm\", realm)" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-direct {p0, p1, p2}, Lokhttp3/Challenge;->(Ljava/lang/String;Ljava/util/Map;)V return-void .end method .method public constructor (Ljava/lang/String;Ljava/util/Map;)V .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/String;", "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/lang/String;", ">;)V" } .end annotation const-string v0, "scheme" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "authParams" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 29 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Lokhttp3/Challenge;->scheme:Ljava/lang/String; .line 61 new-instance p1, Ljava/util/LinkedHashMap; invoke-direct {p1}, Ljava/util/LinkedHashMap;->()V check-cast p1, Ljava/util/Map; .line 62 invoke-interface {p2}, Ljava/util/Map;->entrySet()Ljava/util/Set; move-result-object p2 invoke-interface {p2}, Ljava/util/Set;->iterator()Ljava/util/Iterator; move-result-object p2 :goto_0 invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_2 invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/util/Map$Entry; invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/lang/String; invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/lang/String; if-eqz v1, :cond_1 .line 63 sget-object v2, Ljava/util/Locale;->US:Ljava/util/Locale; const-string v3, "US" invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V if-eqz v1, :cond_0 invoke-virtual {v1, v2}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String; move-result-object v1 const-string v2, "(this as java.lang.String).toLowerCase(locale)" invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V goto :goto_1 :cond_0 new-instance p0, Ljava/lang/NullPointerException; const-string p1, "null cannot be cast to non-null type java.lang.String" invoke-direct {p0, p1}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V throw p0 :cond_1 const/4 v1, 0x0 .line 64 :goto_1 invoke-interface {p1, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; goto :goto_0 .line 66 :cond_2 invoke-static {p1}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map; move-result-object p1 const-string p2, "unmodifiableMap(newAuthParams)" invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V iput-object p1, p0, Lokhttp3/Challenge;->authParams:Ljava/util/Map; return-void .end method # virtual methods .method public final -deprecated_authParams()Ljava/util/Map; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/lang/String;", ">;" } .end annotation .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "authParams" imports = {} .end subannotation .end annotation iget-object p0, p0, Lokhttp3/Challenge;->authParams:Ljava/util/Map; return-object p0 .end method .method public final -deprecated_charset()Ljava/nio/charset/Charset; .locals 0 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "charset" imports = {} .end subannotation .end annotation .line 102 invoke-virtual {p0}, Lokhttp3/Challenge;->charset()Ljava/nio/charset/Charset; move-result-object p0 return-object p0 .end method .method public final -deprecated_realm()Ljava/lang/String; .locals 0 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "realm" imports = {} .end subannotation .end annotation .line 95 invoke-virtual {p0}, Lokhttp3/Challenge;->realm()Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public final -deprecated_scheme()Ljava/lang/String; .locals 0 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "scheme" imports = {} .end subannotation .end annotation iget-object p0, p0, Lokhttp3/Challenge;->scheme:Ljava/lang/String; return-object p0 .end method .method public final authParams()Ljava/util/Map; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/lang/String;", ">;" } .end annotation iget-object p0, p0, Lokhttp3/Challenge;->authParams:Ljava/util/Map; return-object p0 .end method .method public final charset()Ljava/nio/charset/Charset; .locals 1 iget-object p0, p0, Lokhttp3/Challenge;->authParams:Ljava/util/Map; const-string v0, "charset" .line 48 invoke-interface {p0, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Ljava/lang/String; if-eqz p0, :cond_0 .line 51 :try_start_0 invoke-static {p0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset; move-result-object p0 const-string v0, "Charset.forName(charset)" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 return-object p0 .line 55 :catch_0 :cond_0 sget-object p0, Ljava/nio/charset/StandardCharsets;->ISO_8859_1:Ljava/nio/charset/Charset; const-string v0, "ISO_8859_1" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method public equals(Ljava/lang/Object;)Z .locals 2 .line 105 instance-of v0, p1, Lokhttp3/Challenge; if-eqz v0, :cond_0 check-cast p1, Lokhttp3/Challenge; iget-object v0, p1, Lokhttp3/Challenge;->scheme:Ljava/lang/String; iget-object v1, p0, Lokhttp3/Challenge;->scheme:Ljava/lang/String; invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 iget-object p1, p1, Lokhttp3/Challenge;->authParams:Ljava/util/Map; iget-object p0, p0, Lokhttp3/Challenge;->authParams:Ljava/util/Map; invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result p0 if-eqz p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method public hashCode()I .locals 2 iget-object v0, p0, Lokhttp3/Challenge;->scheme:Ljava/lang/String; .line 112 invoke-virtual {v0}, Ljava/lang/String;->hashCode()I move-result v0 const/16 v1, 0x383 add-int/2addr v1, v0 mul-int/lit8 v1, v1, 0x1f iget-object p0, p0, Lokhttp3/Challenge;->authParams:Ljava/util/Map; .line 113 invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I move-result p0 add-int/2addr v1, p0 return v1 .end method .method public final realm()Ljava/lang/String; .locals 1 iget-object p0, p0, Lokhttp3/Challenge;->authParams:Ljava/util/Map; const-string v0, "realm" .line 43 invoke-interface {p0, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Ljava/lang/String; return-object p0 .end method .method public final scheme()Ljava/lang/String; .locals 0 iget-object p0, p0, Lokhttp3/Challenge;->scheme:Ljava/lang/String; return-object p0 .end method .method public toString()Ljava/lang/String; .locals 2 .line 117 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V iget-object v1, p0, Lokhttp3/Challenge;->scheme:Ljava/lang/String; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, " authParams=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-object p0, p0, Lokhttp3/Challenge;->authParams:Ljava/util/Map; invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public final withCharset(Ljava/nio/charset/Charset;)Lokhttp3/Challenge; .locals 3 const-string v0, "charset" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v1, p0, Lokhttp3/Challenge;->authParams:Ljava/util/Map; .line 71 invoke-static {v1}, Lkotlin/collections/MapsKt;->toMutableMap(Ljava/util/Map;)Ljava/util/Map; move-result-object v1 .line 72 invoke-virtual {p1}, Ljava/nio/charset/Charset;->name()Ljava/lang/String; move-result-object p1 const-string v2, "charset.name()" invoke-static {p1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-interface {v1, v0, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 73 new-instance p1, Lokhttp3/Challenge; iget-object p0, p0, Lokhttp3/Challenge;->scheme:Ljava/lang/String; invoke-direct {p1, p0, v1}, Lokhttp3/Challenge;->(Ljava/lang/String;Ljava/util/Map;)V return-object p1 .end method