706 lines
13 KiB
Smali
706 lines
13 KiB
Smali
.class public final Lx/k;
|
|
.super Ljava/lang/Object;
|
|
.source "ConnectionSpec.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lx/k$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final e:[Lx/h;
|
|
|
|
.field public static final f:[Lx/h;
|
|
|
|
.field public static final g:Lx/k;
|
|
|
|
.field public static final h:Lx/k;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Z
|
|
|
|
.field public final b:Z
|
|
|
|
.field public final c:[Ljava/lang/String;
|
|
|
|
.field public final d:[Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 12
|
|
|
|
const/16 v0, 0x9
|
|
|
|
new-array v1, v0, [Lx/h;
|
|
|
|
sget-object v2, Lx/h;->q:Lx/h;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
sget-object v2, Lx/h;->r:Lx/h;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
sget-object v2, Lx/h;->s:Lx/h;
|
|
|
|
const/4 v5, 0x2
|
|
|
|
aput-object v2, v1, v5
|
|
|
|
sget-object v2, Lx/h;->k:Lx/h;
|
|
|
|
const/4 v6, 0x3
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
sget-object v2, Lx/h;->m:Lx/h;
|
|
|
|
const/4 v7, 0x4
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
sget-object v2, Lx/h;->l:Lx/h;
|
|
|
|
const/4 v8, 0x5
|
|
|
|
aput-object v2, v1, v8
|
|
|
|
sget-object v2, Lx/h;->n:Lx/h;
|
|
|
|
const/4 v9, 0x6
|
|
|
|
aput-object v2, v1, v9
|
|
|
|
sget-object v2, Lx/h;->p:Lx/h;
|
|
|
|
const/4 v10, 0x7
|
|
|
|
aput-object v2, v1, v10
|
|
|
|
sget-object v2, Lx/h;->o:Lx/h;
|
|
|
|
const/16 v11, 0x8
|
|
|
|
aput-object v2, v1, v11
|
|
|
|
sput-object v1, Lx/k;->e:[Lx/h;
|
|
|
|
const/16 v1, 0x10
|
|
|
|
new-array v1, v1, [Lx/h;
|
|
|
|
sget-object v2, Lx/h;->q:Lx/h;
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
sget-object v2, Lx/h;->r:Lx/h;
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
sget-object v2, Lx/h;->s:Lx/h;
|
|
|
|
aput-object v2, v1, v5
|
|
|
|
sget-object v2, Lx/h;->k:Lx/h;
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
sget-object v2, Lx/h;->m:Lx/h;
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
sget-object v2, Lx/h;->l:Lx/h;
|
|
|
|
aput-object v2, v1, v8
|
|
|
|
sget-object v2, Lx/h;->n:Lx/h;
|
|
|
|
aput-object v2, v1, v9
|
|
|
|
sget-object v2, Lx/h;->p:Lx/h;
|
|
|
|
aput-object v2, v1, v10
|
|
|
|
sget-object v2, Lx/h;->o:Lx/h;
|
|
|
|
aput-object v2, v1, v11
|
|
|
|
sget-object v2, Lx/h;->i:Lx/h;
|
|
|
|
aput-object v2, v1, v0
|
|
|
|
sget-object v0, Lx/h;->j:Lx/h;
|
|
|
|
const/16 v2, 0xa
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
sget-object v0, Lx/h;->g:Lx/h;
|
|
|
|
const/16 v2, 0xb
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
sget-object v0, Lx/h;->h:Lx/h;
|
|
|
|
const/16 v2, 0xc
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
sget-object v0, Lx/h;->e:Lx/h;
|
|
|
|
const/16 v2, 0xd
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
sget-object v0, Lx/h;->f:Lx/h;
|
|
|
|
const/16 v2, 0xe
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
sget-object v0, Lx/h;->d:Lx/h;
|
|
|
|
const/16 v2, 0xf
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
sput-object v1, Lx/k;->f:[Lx/h;
|
|
|
|
new-instance v0, Lx/k$a;
|
|
|
|
invoke-direct {v0, v4}, Lx/k$a;-><init>(Z)V
|
|
|
|
sget-object v1, Lx/k;->e:[Lx/h;
|
|
|
|
array-length v2, v1
|
|
|
|
invoke-static {v1, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, [Lx/h;
|
|
|
|
invoke-virtual {v0, v1}, Lx/k$a;->a([Lx/h;)Lx/k$a;
|
|
|
|
new-array v1, v5, [Lx/b0;
|
|
|
|
sget-object v2, Lx/b0;->d:Lx/b0;
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
sget-object v2, Lx/b0;->e:Lx/b0;
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
invoke-virtual {v0, v1}, Lx/k$a;->a([Lx/b0;)Lx/k$a;
|
|
|
|
invoke-virtual {v0, v4}, Lx/k$a;->a(Z)Lx/k$a;
|
|
|
|
invoke-virtual {v0}, Lx/k$a;->a()Lx/k;
|
|
|
|
new-instance v0, Lx/k$a;
|
|
|
|
invoke-direct {v0, v4}, Lx/k$a;-><init>(Z)V
|
|
|
|
sget-object v1, Lx/k;->f:[Lx/h;
|
|
|
|
array-length v2, v1
|
|
|
|
invoke-static {v1, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, [Lx/h;
|
|
|
|
invoke-virtual {v0, v1}, Lx/k$a;->a([Lx/h;)Lx/k$a;
|
|
|
|
new-array v1, v5, [Lx/b0;
|
|
|
|
sget-object v2, Lx/b0;->d:Lx/b0;
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
sget-object v2, Lx/b0;->e:Lx/b0;
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
invoke-virtual {v0, v1}, Lx/k$a;->a([Lx/b0;)Lx/k$a;
|
|
|
|
invoke-virtual {v0, v4}, Lx/k$a;->a(Z)Lx/k$a;
|
|
|
|
invoke-virtual {v0}, Lx/k$a;->a()Lx/k;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lx/k;->g:Lx/k;
|
|
|
|
new-instance v0, Lx/k$a;
|
|
|
|
invoke-direct {v0, v4}, Lx/k$a;-><init>(Z)V
|
|
|
|
sget-object v1, Lx/k;->f:[Lx/h;
|
|
|
|
array-length v2, v1
|
|
|
|
invoke-static {v1, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, [Lx/h;
|
|
|
|
invoke-virtual {v0, v1}, Lx/k$a;->a([Lx/h;)Lx/k$a;
|
|
|
|
new-array v1, v7, [Lx/b0;
|
|
|
|
sget-object v2, Lx/b0;->d:Lx/b0;
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
sget-object v2, Lx/b0;->e:Lx/b0;
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
sget-object v2, Lx/b0;->f:Lx/b0;
|
|
|
|
aput-object v2, v1, v5
|
|
|
|
sget-object v2, Lx/b0;->g:Lx/b0;
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
invoke-virtual {v0, v1}, Lx/k$a;->a([Lx/b0;)Lx/k$a;
|
|
|
|
invoke-virtual {v0, v4}, Lx/k$a;->a(Z)Lx/k$a;
|
|
|
|
invoke-virtual {v0}, Lx/k$a;->a()Lx/k;
|
|
|
|
new-instance v0, Lx/k;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v3, v3, v1, v1}, Lx/k;-><init>(ZZ[Ljava/lang/String;[Ljava/lang/String;)V
|
|
|
|
sput-object v0, Lx/k;->h:Lx/k;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(ZZ[Ljava/lang/String;[Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-boolean p1, p0, Lx/k;->a:Z
|
|
|
|
iput-boolean p2, p0, Lx/k;->b:Z
|
|
|
|
iput-object p3, p0, Lx/k;->c:[Ljava/lang/String;
|
|
|
|
iput-object p4, p0, Lx/k;->d:[Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Ljava/util/List;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lx/h;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lx/k;->c:[Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
array-length v2, v0
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
array-length v2, v0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v2, :cond_0
|
|
|
|
aget-object v4, v0, v3
|
|
|
|
sget-object v5, Lx/h;->t:Lx/h$b;
|
|
|
|
invoke-virtual {v5, v4}, Lx/h$b;->a(Ljava/lang/String;)Lx/h;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v1, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-static {v1}, Lt/q/l;->toList(Ljava/lang/Iterable;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final a(Ljavax/net/ssl/SSLSocket;)Z
|
|
.locals 4
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
iget-boolean v0, p0, Lx/k;->a:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lx/k;->d:[Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
sget-object v3, Lt/r/c;->d:Lt/r/c;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-static {v0, v2, v3}, Lx/c0/a;->a([Ljava/lang/String;[Ljava/lang/String;Ljava/util/Comparator;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
new-instance p1, Lt/l;
|
|
|
|
const-string v0, "null cannot be cast to non-null type kotlin.Comparator<T> /* = java.util.Comparator<T> */"
|
|
|
|
invoke-direct {p1, v0}, Lt/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Lx/k;->c:[Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v2, Lx/h;->t:Lx/h$b;
|
|
|
|
invoke-virtual {v2}, Lx/h$b;->a()Ljava/util/Comparator;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v0, p1, v2}, Lx/c0/a;->a([Ljava/lang/String;[Ljava/lang/String;Ljava/util/Comparator;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
return v1
|
|
|
|
:cond_3
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_4
|
|
const-string p1, "socket"
|
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final b()Ljava/util/List;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lx/b0;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lx/k;->d:[Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
array-length v2, v0
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
array-length v2, v0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v2, :cond_0
|
|
|
|
aget-object v4, v0, v3
|
|
|
|
sget-object v5, Lx/b0;->j:Lx/b0$a;
|
|
|
|
invoke-virtual {v5, v4}, Lx/b0$a;->a(Ljava/lang/String;)Lx/b0;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v1, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-static {v1}, Lt/q/l;->toList(Ljava/lang/Iterable;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 4
|
|
|
|
instance-of v0, p1, Lx/k;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p1, p0, :cond_1
|
|
|
|
return v0
|
|
|
|
:cond_1
|
|
iget-boolean v2, p0, Lx/k;->a:Z
|
|
|
|
check-cast p1, Lx/k;
|
|
|
|
iget-boolean v3, p1, Lx/k;->a:Z
|
|
|
|
if-eq v2, v3, :cond_2
|
|
|
|
return v1
|
|
|
|
:cond_2
|
|
if-eqz v2, :cond_5
|
|
|
|
iget-object v2, p0, Lx/k;->c:[Ljava/lang/String;
|
|
|
|
iget-object v3, p1, Lx/k;->c:[Ljava/lang/String;
|
|
|
|
invoke-static {v2, v3}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
return v1
|
|
|
|
:cond_3
|
|
iget-object v2, p0, Lx/k;->d:[Ljava/lang/String;
|
|
|
|
iget-object v3, p1, Lx/k;->d:[Ljava/lang/String;
|
|
|
|
invoke-static {v2, v3}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_4
|
|
|
|
return v1
|
|
|
|
:cond_4
|
|
iget-boolean v2, p0, Lx/k;->b:Z
|
|
|
|
iget-boolean p1, p1, Lx/k;->b:Z
|
|
|
|
if-eq v2, p1, :cond_5
|
|
|
|
return v1
|
|
|
|
:cond_5
|
|
return v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 3
|
|
|
|
iget-boolean v0, p0, Lx/k;->a:Z
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/16 v0, 0x20f
|
|
|
|
iget-object v1, p0, Lx/k;->c:[Ljava/lang/String;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-static {v1}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
|
|
|
|
move-result v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-object v1, p0, Lx/k;->d:[Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-static {v1}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
|
|
|
|
move-result v2
|
|
|
|
:cond_1
|
|
add-int/2addr v0, v2
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-boolean v1, p0, Lx/k;->b:Z
|
|
|
|
xor-int/lit8 v1, v1, 0x1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/16 v0, 0x11
|
|
|
|
:goto_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
iget-boolean v0, p0, Lx/k;->a:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "ConnectionSpec()"
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-string v0, "ConnectionSpec("
|
|
|
|
const-string v1, "cipherSuites="
|
|
|
|
invoke-static {v0, v1}, Le/e/b/a/a;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0}, Lx/k;->a()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "[all enabled]"
|
|
|
|
invoke-static {v1, v2}, Ljava/util/Objects;->toString(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "tlsVersions="
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lx/k;->b()Ljava/util/List;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3, v2}, Ljava/util/Objects;->toString(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "supportsTlsExtensions="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lx/k;->b:Z
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v1, 0x29
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|