apkfuckery/com.discord/smali/okhttp3/t.smali

819 lines
19 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public Lokhttp3/t;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "OkHttpClient.java"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Ljava/lang/Cloneable;
.implements Lokhttp3/e$a;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/t$a;
}
.end annotation
# static fields
2019-02-17 00:24:05 +00:00
.field static final blt:Ljava/util/List;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/u;",
">;"
}
.end annotation
.end field
2019-02-17 00:24:05 +00:00
.field static final blu:Ljava/util/List;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/k;",
">;"
}
.end annotation
.end field
# instance fields
2019-02-17 00:24:05 +00:00
.field final bhF:Lokhttp3/internal/h/c;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field public final bhf:Lokhttp3/o;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
.field public final bhg:Ljavax/net/SocketFactory;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
.field public final bhh:Lokhttp3/b;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
.field public final bhi:Ljava/util/List;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/u;",
">;"
}
.end annotation
.end field
2019-02-17 00:24:05 +00:00
.field public final bhj:Ljava/util/List;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/k;",
">;"
}
.end annotation
.end field
2019-02-17 00:24:05 +00:00
.field public final bhk:Ljava/net/Proxy;
2019-02-04 20:08:30 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-02-17 00:24:05 +00:00
.field public final bhl:Lokhttp3/g;
2019-02-04 20:29:01 +00:00
2019-02-17 00:24:05 +00:00
.field final bhn:Lokhttp3/internal/a/e;
2019-02-04 20:29:01 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
.field final blA:Lokhttp3/b;
.field public final blB:Lokhttp3/j;
.field public final blC:Z
.field public final blD:Z
.field public final blE:Z
2019-02-14 22:50:29 +00:00
2019-02-17 00:24:05 +00:00
.field final blF:I
2019-02-04 20:32:01 +00:00
2019-02-17 00:24:05 +00:00
.field final blG:I
.field final blH:I
.field public final blI:I
.field public final blv:Lokhttp3/n;
.field final blw:Ljava/util/List;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/Interceptor;",
">;"
}
.end annotation
.end field
2019-02-17 00:24:05 +00:00
.field final blx:Ljava/util/List;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/Interceptor;",
">;"
}
.end annotation
.end field
2019-02-17 00:24:05 +00:00
.field final bly:Lokhttp3/p$a;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
.field final blz:Lokhttp3/c;
2019-02-04 20:08:30 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field public final cookieJar:Lokhttp3/m;
.field public final hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
.field public final proxySelector:Ljava/net/ProxySelector;
.field public final sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
2019-02-17 00:24:05 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-02-04 20:08:30 +00:00
# direct methods
.method static constructor <clinit>()V
.locals 5
const/4 v0, 0x2
new-array v1, v0, [Lokhttp3/u;
2019-02-17 00:24:05 +00:00
sget-object v2, Lokhttp3/u;->blM:Lokhttp3/u;
2019-02-04 20:08:30 +00:00
const/4 v3, 0x0
aput-object v2, v1, v3
2019-02-17 00:24:05 +00:00
sget-object v2, Lokhttp3/u;->blK:Lokhttp3/u;
2019-02-04 20:08:30 +00:00
const/4 v4, 0x1
aput-object v2, v1, v4
2019-02-04 20:32:01 +00:00
invoke-static {v1}, Lokhttp3/internal/c;->m([Ljava/lang/Object;)Ljava/util/List;
2019-02-04 20:08:30 +00:00
move-result-object v1
2019-02-17 00:24:05 +00:00
sput-object v1, Lokhttp3/t;->blt:Ljava/util/List;
2019-02-04 20:08:30 +00:00
new-array v0, v0, [Lokhttp3/k;
2019-02-17 00:24:05 +00:00
sget-object v1, Lokhttp3/k;->bke:Lokhttp3/k;
2019-02-04 20:08:30 +00:00
aput-object v1, v0, v3
2019-02-17 00:24:05 +00:00
sget-object v1, Lokhttp3/k;->bkg:Lokhttp3/k;
2019-02-04 20:08:30 +00:00
aput-object v1, v0, v4
2019-02-04 20:32:01 +00:00
invoke-static {v0}, Lokhttp3/internal/c;->m([Ljava/lang/Object;)Ljava/util/List;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-02-17 00:24:05 +00:00
sput-object v0, Lokhttp3/t;->blu:Ljava/util/List;
2019-02-04 20:08:30 +00:00
new-instance v0, Lokhttp3/t$1;
invoke-direct {v0}, Lokhttp3/t$1;-><init>()V
2019-02-17 00:24:05 +00:00
sput-object v0, Lokhttp3/internal/a;->bmD:Lokhttp3/internal/a;
2019-02-04 20:08:30 +00:00
return-void
.end method
.method public constructor <init>()V
.locals 1
new-instance v0, Lokhttp3/t$a;
invoke-direct {v0}, Lokhttp3/t$a;-><init>()V
invoke-direct {p0, v0}, Lokhttp3/t;-><init>(Lokhttp3/t$a;)V
return-void
.end method
.method constructor <init>(Lokhttp3/t$a;)V
.locals 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->blv:Lokhttp3/n;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->blv:Lokhttp3/n;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->bhk:Ljava/net/Proxy;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->bhk:Ljava/net/Proxy;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->bhi:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->bhi:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->bhj:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->bhj:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->blw:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-02-04 20:32:01 +00:00
invoke-static {v0}, Lokhttp3/internal/c;->ac(Ljava/util/List;)Ljava/util/List;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->blw:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->blx:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-02-04 20:32:01 +00:00
invoke-static {v0}, Lokhttp3/internal/c;->ac(Ljava/util/List;)Ljava/util/List;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->blx:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->bly:Lokhttp3/p$a;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->bly:Lokhttp3/p$a;
2019-02-04 20:08:30 +00:00
iget-object v0, p1, Lokhttp3/t$a;->proxySelector:Ljava/net/ProxySelector;
iput-object v0, p0, Lokhttp3/t;->proxySelector:Ljava/net/ProxySelector;
iget-object v0, p1, Lokhttp3/t$a;->cookieJar:Lokhttp3/m;
iput-object v0, p0, Lokhttp3/t;->cookieJar:Lokhttp3/m;
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->blz:Lokhttp3/c;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->blz:Lokhttp3/c;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->bhn:Lokhttp3/internal/a/e;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->bhn:Lokhttp3/internal/a/e;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->bhg:Ljavax/net/SocketFactory;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->bhg:Ljavax/net/SocketFactory;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lokhttp3/t;->bhj:Ljava/util/List;
2019-02-04 20:08:30 +00:00
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_2
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lokhttp3/k;
if-nez v2, :cond_1
2019-02-17 00:24:05 +00:00
iget-boolean v2, v3, Lokhttp3/k;->bkh:Z
2019-02-04 20:08:30 +00:00
if-eqz v2, :cond_0
2019-02-04 20:29:01 +00:00
goto :goto_1
:cond_0
const/4 v2, 0x0
goto :goto_0
2019-02-04 20:08:30 +00:00
:cond_1
2019-02-04 20:29:01 +00:00
:goto_1
2019-02-04 20:08:30 +00:00
const/4 v2, 0x1
goto :goto_0
:cond_2
iget-object v0, p1, Lokhttp3/t$a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
if-nez v0, :cond_4
if-nez v2, :cond_3
2019-02-04 20:29:01 +00:00
goto :goto_2
2019-02-04 20:08:30 +00:00
:cond_3
2019-02-17 00:24:05 +00:00
invoke-static {}, Lokhttp3/internal/c;->AH()Ljavax/net/ssl/X509TrustManager;
2019-02-04 20:08:30 +00:00
move-result-object v0
invoke-static {v0}, Lokhttp3/t;->a(Ljavax/net/ssl/X509TrustManager;)Ljavax/net/ssl/SSLSocketFactory;
move-result-object v1
iput-object v1, p0, Lokhttp3/t;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
2019-02-06 20:30:57 +00:00
invoke-static {}, Lokhttp3/internal/g/f;->BF()Lokhttp3/internal/g/f;
2019-02-04 20:08:30 +00:00
move-result-object v1
2019-02-17 00:24:05 +00:00
invoke-virtual {v1, v0}, Lokhttp3/internal/g/f;->b(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/h/c;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->bhF:Lokhttp3/internal/h/c;
2019-02-04 20:29:01 +00:00
goto :goto_3
2019-02-04 20:08:30 +00:00
:cond_4
2019-02-04 20:29:01 +00:00
:goto_2
2019-02-04 20:08:30 +00:00
iget-object v0, p1, Lokhttp3/t$a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
iput-object v0, p0, Lokhttp3/t;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->bhF:Lokhttp3/internal/h/c;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->bhF:Lokhttp3/internal/h/c;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
:goto_3
2019-02-04 20:08:30 +00:00
iget-object v0, p0, Lokhttp3/t;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
if-eqz v0, :cond_5
2019-02-06 20:30:57 +00:00
invoke-static {}, Lokhttp3/internal/g/f;->BF()Lokhttp3/internal/g/f;
2019-02-04 20:08:30 +00:00
move-result-object v0
iget-object v1, p0, Lokhttp3/t;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
invoke-virtual {v0, v1}, Lokhttp3/internal/g/f;->c(Ljavax/net/ssl/SSLSocketFactory;)V
:cond_5
iget-object v0, p1, Lokhttp3/t$a;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
iput-object v0, p0, Lokhttp3/t;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->bhl:Lokhttp3/g;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v1, p0, Lokhttp3/t;->bhF:Lokhttp3/internal/h/c;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v2, v0, Lokhttp3/g;->bhF:Lokhttp3/internal/h/c;
2019-02-04 20:08:30 +00:00
invoke-static {v2, v1}, Lokhttp3/internal/c;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_6
2019-02-04 20:29:01 +00:00
goto :goto_4
2019-02-04 20:08:30 +00:00
:cond_6
new-instance v2, Lokhttp3/g;
2019-02-17 00:24:05 +00:00
iget-object v0, v0, Lokhttp3/g;->bhE:Ljava/util/Set;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
invoke-direct {v2, v0, v1}, Lokhttp3/g;-><init>(Ljava/util/Set;Lokhttp3/internal/h/c;)V
2019-02-04 20:08:30 +00:00
move-object v0, v2
2019-02-04 20:29:01 +00:00
:goto_4
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->bhl:Lokhttp3/g;
2019-02-06 20:30:57 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->bhh:Lokhttp3/b;
2019-02-04 20:20:43 +00:00
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->bhh:Lokhttp3/b;
2019-02-04 20:20:43 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->blA:Lokhttp3/b;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->blA:Lokhttp3/b;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->blB:Lokhttp3/j;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->blB:Lokhttp3/j;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object v0, p1, Lokhttp3/t$a;->bhf:Lokhttp3/o;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-object v0, p0, Lokhttp3/t;->bhf:Lokhttp3/o;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-boolean v0, p1, Lokhttp3/t$a;->blC:Z
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-boolean v0, p0, Lokhttp3/t;->blC:Z
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-boolean v0, p1, Lokhttp3/t$a;->blD:Z
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-boolean v0, p0, Lokhttp3/t;->blD:Z
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-boolean v0, p1, Lokhttp3/t$a;->blE:Z
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput-boolean v0, p0, Lokhttp3/t;->blE:Z
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget v0, p1, Lokhttp3/t$a;->blF:I
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput v0, p0, Lokhttp3/t;->blF:I
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget v0, p1, Lokhttp3/t$a;->blG:I
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput v0, p0, Lokhttp3/t;->blG:I
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget v0, p1, Lokhttp3/t$a;->blH:I
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput v0, p0, Lokhttp3/t;->blH:I
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget p1, p1, Lokhttp3/t$a;->blI:I
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iput p1, p0, Lokhttp3/t;->blI:I
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object p1, p0, Lokhttp3/t;->blw:Ljava/util/List;
2019-02-04 20:08:30 +00:00
const/4 v0, 0x0
invoke-interface {p1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_8
2019-02-17 00:24:05 +00:00
iget-object p1, p0, Lokhttp3/t;->blx:Ljava/util/List;
2019-02-04 20:08:30 +00:00
invoke-interface {p1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_7
return-void
:cond_7
new-instance p1, Ljava/lang/IllegalStateException;
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Null network interceptor: "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-17 00:24:05 +00:00
iget-object v1, p0, Lokhttp3/t;->blx:Ljava/util/List;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_8
new-instance p1, Ljava/lang/IllegalStateException;
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Null interceptor: "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-17 00:24:05 +00:00
iget-object v1, p0, Lokhttp3/t;->blw:Ljava/util/List;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
2019-02-04 20:29:01 +00:00
return-void
2019-02-04 20:08:30 +00:00
.end method
.method private static a(Ljavax/net/ssl/X509TrustManager;)Ljavax/net/ssl/SSLSocketFactory;
.locals 3
:try_start_0
2019-02-06 20:30:57 +00:00
invoke-static {}, Lokhttp3/internal/g/f;->BF()Lokhttp3/internal/g/f;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-02-17 00:24:05 +00:00
invoke-virtual {v0}, Lokhttp3/internal/g/f;->BC()Ljavax/net/ssl/SSLContext;
2019-02-04 20:08:30 +00:00
move-result-object v0
const/4 v1, 0x1
new-array v1, v1, [Ljavax/net/ssl/TrustManager;
const/4 v2, 0x0
aput-object p0, v1, v2
const/4 p0, 0x0
invoke-virtual {v0, p0, v1, p0}, Ljavax/net/ssl/SSLContext;->init([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V
invoke-virtual {v0}, Ljavax/net/ssl/SSLContext;->getSocketFactory()Ljavax/net/ssl/SSLSocketFactory;
move-result-object p0
:try_end_0
.catch Ljava/security/GeneralSecurityException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
move-exception p0
const-string v0, "No System TLS"
invoke-static {v0, p0}, Lokhttp3/internal/c;->a(Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/AssertionError;
move-result-object p0
throw p0
.end method
# virtual methods
2019-02-06 20:30:57 +00:00
.method final As()Lokhttp3/internal/a/e;
2019-02-04 20:08:30 +00:00
.locals 1
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lokhttp3/t;->blz:Lokhttp3/c;
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, v0, Lokhttp3/c;->bhn:Lokhttp3/internal/a/e;
2019-02-04 20:08:30 +00:00
return-object v0
:cond_0
2019-02-17 00:24:05 +00:00
iget-object v0, p0, Lokhttp3/t;->bhn:Lokhttp3/internal/a/e;
2019-02-04 20:08:30 +00:00
return-object v0
.end method
.method public final a(Lokhttp3/w;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;
.locals 7
2019-02-17 00:24:05 +00:00
new-instance v6, Lokhttp3/internal/i/a;
2019-02-04 20:08:30 +00:00
new-instance v3, Ljava/util/Random;
invoke-direct {v3}, Ljava/util/Random;-><init>()V
2019-02-17 00:24:05 +00:00
iget v0, p0, Lokhttp3/t;->blI:I
2019-02-04 20:08:30 +00:00
int-to-long v4, v0
move-object v0, v6
move-object v1, p1
move-object v2, p2
2019-02-17 00:24:05 +00:00
invoke-direct/range {v0 .. v5}, Lokhttp3/internal/i/a;-><init>(Lokhttp3/w;Lokhttp3/WebSocketListener;Ljava/util/Random;J)V
2019-02-04 20:08:30 +00:00
new-instance p1, Lokhttp3/t$a;
invoke-direct {p1, p0}, Lokhttp3/t$a;-><init>(Lokhttp3/t;)V
2019-02-17 00:24:05 +00:00
sget-object p2, Lokhttp3/p;->bkD:Lokhttp3/p;
2019-02-04 20:08:30 +00:00
if-eqz p2, :cond_6
invoke-static {p2}, Lokhttp3/p;->a(Lokhttp3/p;)Lokhttp3/p$a;
move-result-object p2
2019-02-17 00:24:05 +00:00
iput-object p2, p1, Lokhttp3/t$a;->bly:Lokhttp3/p$a;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
sget-object p2, Lokhttp3/internal/i/a;->bru:Ljava/util/List;
2019-02-04 20:08:30 +00:00
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0, p2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
2019-02-17 00:24:05 +00:00
sget-object p2, Lokhttp3/u;->blN:Lokhttp3/u;
2019-02-04 20:08:30 +00:00
invoke-interface {v0, p2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result p2
if-nez p2, :cond_1
2019-02-17 00:24:05 +00:00
sget-object p2, Lokhttp3/u;->blK:Lokhttp3/u;
2019-02-04 20:08:30 +00:00
invoke-interface {v0, p2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result p2
if-eqz p2, :cond_0
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
const-string v0, "protocols must contain h2_prior_knowledge or http/1.1: "
invoke-virtual {v0, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
:goto_0
2019-02-17 00:24:05 +00:00
sget-object p2, Lokhttp3/u;->blN:Lokhttp3/u;
2019-02-04 20:08:30 +00:00
invoke-interface {v0, p2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result p2
if-eqz p2, :cond_3
invoke-interface {v0}, Ljava/util/List;->size()I
move-result p2
const/4 v1, 0x1
if-gt p2, v1, :cond_2
goto :goto_1
:cond_2
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
const-string v0, "protocols containing h2_prior_knowledge cannot use other protocols: "
invoke-virtual {v0, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
:goto_1
2019-02-17 00:24:05 +00:00
sget-object p2, Lokhttp3/u;->blJ:Lokhttp3/u;
2019-02-04 20:08:30 +00:00
invoke-interface {v0, p2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result p2
if-nez p2, :cond_5
const/4 p2, 0x0
invoke-interface {v0, p2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result p2
if-nez p2, :cond_4
2019-02-17 00:24:05 +00:00
sget-object p2, Lokhttp3/u;->blL:Lokhttp3/u;
2019-02-04 20:08:30 +00:00
invoke-interface {v0, p2}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
move-result-object p2
2019-02-17 00:24:05 +00:00
iput-object p2, p1, Lokhttp3/t$a;->bhi:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-02-06 20:30:57 +00:00
invoke-virtual {p1}, Lokhttp3/t$a;->At()Lokhttp3/t;
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-17 00:24:05 +00:00
iget-object p2, v6, Lokhttp3/internal/i/a;->blT:Lokhttp3/w;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
invoke-virtual {p2}, Lokhttp3/w;->Az()Lokhttp3/w$a;
2019-02-04 20:08:30 +00:00
move-result-object p2
const-string v0, "Upgrade"
const-string v1, "websocket"
2019-02-04 20:32:01 +00:00
invoke-virtual {p2, v0, v1}, Lokhttp3/w$a;->aj(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a;
2019-02-04 20:08:30 +00:00
move-result-object p2
const-string v0, "Connection"
const-string v1, "Upgrade"
2019-02-04 20:32:01 +00:00
invoke-virtual {p2, v0, v1}, Lokhttp3/w$a;->aj(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a;
2019-02-04 20:08:30 +00:00
move-result-object p2
const-string v0, "Sec-WebSocket-Key"
2019-02-17 00:24:05 +00:00
iget-object v1, v6, Lokhttp3/internal/i/a;->key:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-04 20:32:01 +00:00
invoke-virtual {p2, v0, v1}, Lokhttp3/w$a;->aj(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a;
2019-02-04 20:08:30 +00:00
move-result-object p2
const-string v0, "Sec-WebSocket-Version"
const-string v1, "13"
2019-02-04 20:32:01 +00:00
invoke-virtual {p2, v0, v1}, Lokhttp3/w$a;->aj(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a;
2019-02-04 20:08:30 +00:00
move-result-object p2
2019-02-17 00:24:05 +00:00
invoke-virtual {p2}, Lokhttp3/w$a;->AB()Lokhttp3/w;
2019-02-04 20:08:30 +00:00
move-result-object p2
2019-02-17 00:24:05 +00:00
sget-object v0, Lokhttp3/internal/a;->bmD:Lokhttp3/internal/a;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, p1, p2}, Lokhttp3/internal/a;->a(Lokhttp3/t;Lokhttp3/w;)Lokhttp3/e;
move-result-object p1
2019-02-17 00:24:05 +00:00
iput-object p1, v6, Lokhttp3/internal/i/a;->bnQ:Lokhttp3/e;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
iget-object p1, v6, Lokhttp3/internal/i/a;->bnQ:Lokhttp3/e;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
new-instance v0, Lokhttp3/internal/i/a$2;
2019-02-04 20:08:30 +00:00
2019-02-17 00:24:05 +00:00
invoke-direct {v0, v6, p2}, Lokhttp3/internal/i/a$2;-><init>(Lokhttp3/internal/i/a;Lokhttp3/w;)V
2019-02-04 20:08:30 +00:00
invoke-interface {p1, v0}, Lokhttp3/e;->a(Lokhttp3/f;)V
return-object v6
:cond_4
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "protocols must not contain null"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_5
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
const-string v0, "protocols must not contain http/1.0: "
invoke-virtual {v0, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_6
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "eventListener == null"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public final a(Lokhttp3/w;)Lokhttp3/e;
.locals 1
const/4 v0, 0x0
invoke-static {p0, p1, v0}, Lokhttp3/v;->a(Lokhttp3/t;Lokhttp3/w;Z)Lokhttp3/v;
move-result-object p1
return-object p1
.end method