今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

957 lines
22 KiB

.class public final Lokhttp3/ConnectionSpec;
.super Ljava/lang/Object;
.source "ConnectionSpec.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/ConnectionSpec$Builder;
}
.end annotation
# static fields
.field private static final APPROVED_CIPHER_SUITES:[Lokhttp3/CipherSuite;
.field public static final CLEARTEXT:Lokhttp3/ConnectionSpec;
.field public static final COMPATIBLE_TLS:Lokhttp3/ConnectionSpec;
.field public static final MODERN_TLS:Lokhttp3/ConnectionSpec;
# instance fields
.field private final cipherSuites:[Ljava/lang/String;
.field private final supportsTlsExtensions:Z
.field private final tls:Z
.field private final tlsVersions:[Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.locals 7
.prologue
const/4 v6, 0x3
const/4 v5, 0x2
const/4 v4, 0x0
const/4 v3, 0x1
.line 44
const/16 v0, 0xd
new-array v0, v0, [Lokhttp3/CipherSuite;
sget-object v1, Lokhttp3/CipherSuite;->TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256:Lokhttp3/CipherSuite;
aput-object v1, v0, v4
sget-object v1, Lokhttp3/CipherSuite;->TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256:Lokhttp3/CipherSuite;
aput-object v1, v0, v3
sget-object v1, Lokhttp3/CipherSuite;->TLS_DHE_RSA_WITH_AES_128_GCM_SHA256:Lokhttp3/CipherSuite;
aput-object v1, v0, v5
sget-object v1, Lokhttp3/CipherSuite;->TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA:Lokhttp3/CipherSuite;
aput-object v1, v0, v6
const/4 v1, 0x4
sget-object v2, Lokhttp3/CipherSuite;->TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA:Lokhttp3/CipherSuite;
aput-object v2, v0, v1
const/4 v1, 0x5
sget-object v2, Lokhttp3/CipherSuite;->TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA:Lokhttp3/CipherSuite;
aput-object v2, v0, v1
const/4 v1, 0x6
sget-object v2, Lokhttp3/CipherSuite;->TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA:Lokhttp3/CipherSuite;
aput-object v2, v0, v1
const/4 v1, 0x7
sget-object v2, Lokhttp3/CipherSuite;->TLS_DHE_RSA_WITH_AES_128_CBC_SHA:Lokhttp3/CipherSuite;
aput-object v2, v0, v1
const/16 v1, 0x8
sget-object v2, Lokhttp3/CipherSuite;->TLS_DHE_RSA_WITH_AES_256_CBC_SHA:Lokhttp3/CipherSuite;
aput-object v2, v0, v1
const/16 v1, 0x9
sget-object v2, Lokhttp3/CipherSuite;->TLS_RSA_WITH_AES_128_GCM_SHA256:Lokhttp3/CipherSuite;
aput-object v2, v0, v1
const/16 v1, 0xa
sget-object v2, Lokhttp3/CipherSuite;->TLS_RSA_WITH_AES_128_CBC_SHA:Lokhttp3/CipherSuite;
aput-object v2, v0, v1
const/16 v1, 0xb
sget-object v2, Lokhttp3/CipherSuite;->TLS_RSA_WITH_AES_256_CBC_SHA:Lokhttp3/CipherSuite;
aput-object v2, v0, v1
const/16 v1, 0xc
sget-object v2, Lokhttp3/CipherSuite;->TLS_RSA_WITH_3DES_EDE_CBC_SHA:Lokhttp3/CipherSuite;
aput-object v2, v0, v1
sput-object v0, Lokhttp3/ConnectionSpec;->APPROVED_CIPHER_SUITES:[Lokhttp3/CipherSuite;
.line 65
new-instance v0, Lokhttp3/ConnectionSpec$Builder;
invoke-direct {v0, v3}, Lokhttp3/ConnectionSpec$Builder;-><init>(Z)V
sget-object v1, Lokhttp3/ConnectionSpec;->APPROVED_CIPHER_SUITES:[Lokhttp3/CipherSuite;
.line 66
invoke-virtual {v0, v1}, Lokhttp3/ConnectionSpec$Builder;->cipherSuites([Lokhttp3/CipherSuite;)Lokhttp3/ConnectionSpec$Builder;
move-result-object v0
new-array v1, v6, [Lokhttp3/TlsVersion;
sget-object v2, Lokhttp3/TlsVersion;->TLS_1_2:Lokhttp3/TlsVersion;
aput-object v2, v1, v4
sget-object v2, Lokhttp3/TlsVersion;->TLS_1_1:Lokhttp3/TlsVersion;
aput-object v2, v1, v3
sget-object v2, Lokhttp3/TlsVersion;->TLS_1_0:Lokhttp3/TlsVersion;
aput-object v2, v1, v5
.line 67
invoke-virtual {v0, v1}, Lokhttp3/ConnectionSpec$Builder;->tlsVersions([Lokhttp3/TlsVersion;)Lokhttp3/ConnectionSpec$Builder;
move-result-object v0
.line 68
invoke-virtual {v0, v3}, Lokhttp3/ConnectionSpec$Builder;->supportsTlsExtensions(Z)Lokhttp3/ConnectionSpec$Builder;
move-result-object v0
.line 69
invoke-virtual {v0}, Lokhttp3/ConnectionSpec$Builder;->build()Lokhttp3/ConnectionSpec;
move-result-object v0
sput-object v0, Lokhttp3/ConnectionSpec;->MODERN_TLS:Lokhttp3/ConnectionSpec;
.line 72
new-instance v0, Lokhttp3/ConnectionSpec$Builder;
sget-object v1, Lokhttp3/ConnectionSpec;->MODERN_TLS:Lokhttp3/ConnectionSpec;
invoke-direct {v0, v1}, Lokhttp3/ConnectionSpec$Builder;-><init>(Lokhttp3/ConnectionSpec;)V
new-array v1, v3, [Lokhttp3/TlsVersion;
sget-object v2, Lokhttp3/TlsVersion;->TLS_1_0:Lokhttp3/TlsVersion;
aput-object v2, v1, v4
.line 73
invoke-virtual {v0, v1}, Lokhttp3/ConnectionSpec$Builder;->tlsVersions([Lokhttp3/TlsVersion;)Lokhttp3/ConnectionSpec$Builder;
move-result-object v0
.line 74
invoke-virtual {v0, v3}, Lokhttp3/ConnectionSpec$Builder;->supportsTlsExtensions(Z)Lokhttp3/ConnectionSpec$Builder;
move-result-object v0
.line 75
invoke-virtual {v0}, Lokhttp3/ConnectionSpec$Builder;->build()Lokhttp3/ConnectionSpec;
move-result-object v0
sput-object v0, Lokhttp3/ConnectionSpec;->COMPATIBLE_TLS:Lokhttp3/ConnectionSpec;
.line 78
new-instance v0, Lokhttp3/ConnectionSpec$Builder;
invoke-direct {v0, v4}, Lokhttp3/ConnectionSpec$Builder;-><init>(Z)V
invoke-virtual {v0}, Lokhttp3/ConnectionSpec$Builder;->build()Lokhttp3/ConnectionSpec;
move-result-object v0
sput-object v0, Lokhttp3/ConnectionSpec;->CLEARTEXT:Lokhttp3/ConnectionSpec;
return-void
.end method
.method private constructor <init>(Lokhttp3/ConnectionSpec$Builder;)V
.locals 1
.prologue
.line 85
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 86
invoke-static {p1}, Lokhttp3/ConnectionSpec$Builder;->access$000(Lokhttp3/ConnectionSpec$Builder;)Z
move-result v0
iput-boolean v0, p0, Lokhttp3/ConnectionSpec;->tls:Z
.line 87
invoke-static {p1}, Lokhttp3/ConnectionSpec$Builder;->access$100(Lokhttp3/ConnectionSpec$Builder;)[Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
.line 88
invoke-static {p1}, Lokhttp3/ConnectionSpec$Builder;->access$200(Lokhttp3/ConnectionSpec$Builder;)[Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
.line 89
invoke-static {p1}, Lokhttp3/ConnectionSpec$Builder;->access$300(Lokhttp3/ConnectionSpec$Builder;)Z
move-result v0
iput-boolean v0, p0, Lokhttp3/ConnectionSpec;->supportsTlsExtensions:Z
.line 90
return-void
.end method
.method synthetic constructor <init>(Lokhttp3/ConnectionSpec$Builder;Lokhttp3/ConnectionSpec$1;)V
.locals 0
.prologue
.line 39
invoke-direct {p0, p1}, Lokhttp3/ConnectionSpec;-><init>(Lokhttp3/ConnectionSpec$Builder;)V
return-void
.end method
.method static synthetic access$400(Lokhttp3/ConnectionSpec;)Z
.locals 1
.prologue
.line 39
iget-boolean v0, p0, Lokhttp3/ConnectionSpec;->tls:Z
return v0
.end method
.method static synthetic access$500(Lokhttp3/ConnectionSpec;)[Ljava/lang/String;
.locals 1
.prologue
.line 39
iget-object v0, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
return-object v0
.end method
.method static synthetic access$600(Lokhttp3/ConnectionSpec;)[Ljava/lang/String;
.locals 1
.prologue
.line 39
iget-object v0, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
return-object v0
.end method
.method static synthetic access$700(Lokhttp3/ConnectionSpec;)Z
.locals 1
.prologue
.line 39
iget-boolean v0, p0, Lokhttp3/ConnectionSpec;->supportsTlsExtensions:Z
return v0
.end method
.method private static nonEmptyIntersection([Ljava/lang/String;[Ljava/lang/String;)Z
.locals 4
.prologue
const/4 v0, 0x0
.line 199
if-eqz p0, :cond_0
if-eqz p1, :cond_0
array-length v1, p0
if-eqz v1, :cond_0
array-length v1, p1
if-nez v1, :cond_1
.line 207
:cond_0
:goto_0
return v0
.line 202
:cond_1
array-length v2, p0
move v1, v0
:goto_1
if-ge v1, v2, :cond_0
aget-object v3, p0, v1
.line 203
invoke-static {p1, v3}, Lokhttp3/internal/Util;->contains([Ljava/lang/String;Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_2
.line 204
const/4 v0, 0x1
goto :goto_0
.line 202
:cond_2
add-int/lit8 v1, v1, 0x1
goto :goto_1
.end method
.method private supportedSpec(Ljavax/net/ssl/SSLSocket;Z)Lokhttp3/ConnectionSpec;
.locals 4
.prologue
.line 145
iget-object v0, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
if-eqz v0, :cond_1
const-class v0, Ljava/lang/String;
iget-object v1, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
.line 146
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
move-result-object v2
invoke-static {v0, v1, v2}, Lokhttp3/internal/Util;->intersect(Ljava/lang/Class;[Ljava/lang/Object;[Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Ljava/lang/String;
move-object v1, v0
.line 148
:goto_0
iget-object v0, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
if-eqz v0, :cond_2
const-class v0, Ljava/lang/String;
iget-object v2, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
.line 149
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
move-result-object v3
invoke-static {v0, v2, v3}, Lokhttp3/internal/Util;->intersect(Ljava/lang/Class;[Ljava/lang/Object;[Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Ljava/lang/String;
.line 154
:goto_1
if-eqz p2, :cond_0
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getSupportedCipherSuites()[Ljava/lang/String;
move-result-object v2
const-string v3, "TLS_FALLBACK_SCSV"
invoke-static {v2, v3}, Lokhttp3/internal/Util;->contains([Ljava/lang/String;Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_0
.line 155
const-string v2, "TLS_FALLBACK_SCSV"
invoke-static {v1, v2}, Lokhttp3/internal/Util;->concat([Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
move-result-object v1
.line 158
:cond_0
new-instance v2, Lokhttp3/ConnectionSpec$Builder;
invoke-direct {v2, p0}, Lokhttp3/ConnectionSpec$Builder;-><init>(Lokhttp3/ConnectionSpec;)V
.line 159
invoke-virtual {v2, v1}, Lokhttp3/ConnectionSpec$Builder;->cipherSuites([Ljava/lang/String;)Lokhttp3/ConnectionSpec$Builder;
move-result-object v1
.line 160
invoke-virtual {v1, v0}, Lokhttp3/ConnectionSpec$Builder;->tlsVersions([Ljava/lang/String;)Lokhttp3/ConnectionSpec$Builder;
move-result-object v0
.line 161
invoke-virtual {v0}, Lokhttp3/ConnectionSpec$Builder;->build()Lokhttp3/ConnectionSpec;
move-result-object v0
return-object v0
.line 147
:cond_1
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
move-result-object v0
move-object v1, v0
goto :goto_0
.line 150
:cond_2
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
move-result-object v0
goto :goto_1
.end method
# virtual methods
.method apply(Ljavax/net/ssl/SSLSocket;Z)V
.locals 2
.prologue
.line 130
invoke-direct {p0, p1, p2}, Lokhttp3/ConnectionSpec;->supportedSpec(Ljavax/net/ssl/SSLSocket;Z)Lokhttp3/ConnectionSpec;
move-result-object v0
.line 132
iget-object v1, v0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
if-eqz v1, :cond_0
.line 133
iget-object v1, v0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
invoke-virtual {p1, v1}, Ljavax/net/ssl/SSLSocket;->setEnabledProtocols([Ljava/lang/String;)V
.line 135
:cond_0
iget-object v1, v0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
if-eqz v1, :cond_1
.line 136
iget-object v0, v0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
invoke-virtual {p1, v0}, Ljavax/net/ssl/SSLSocket;->setEnabledCipherSuites([Ljava/lang/String;)V
.line 138
:cond_1
return-void
.end method
.method public cipherSuites()Ljava/util/List;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List",
"<",
"Lokhttp3/CipherSuite;",
">;"
}
.end annotation
.prologue
.line 101
iget-object v0, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
if-nez v0, :cond_0
const/4 v0, 0x0
.line 107
:goto_0
return-object v0
.line 103
:cond_0
iget-object v0, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
array-length v0, v0
new-array v1, v0, [Lokhttp3/CipherSuite;
.line 104
const/4 v0, 0x0
:goto_1
iget-object v2, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
array-length v2, v2
if-ge v0, v2, :cond_1
.line 105
iget-object v2, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
aget-object v2, v2, v0
invoke-static {v2}, Lokhttp3/CipherSuite;->forJavaName(Ljava/lang/String;)Lokhttp3/CipherSuite;
move-result-object v2
aput-object v2, v1, v0
.line 104
add-int/lit8 v0, v0, 0x1
goto :goto_1
.line 107
:cond_1
invoke-static {v1}, Lokhttp3/internal/Util;->immutableList([Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
goto :goto_0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 4
.prologue
const/4 v1, 0x1
const/4 v0, 0x0
.line 211
instance-of v2, p1, Lokhttp3/ConnectionSpec;
if-nez v2, :cond_1
.line 223
:cond_0
:goto_0
return v0
.line 212
:cond_1
if-ne p1, p0, :cond_2
move v0, v1
goto :goto_0
.line 214
:cond_2
check-cast p1, Lokhttp3/ConnectionSpec;
.line 215
iget-boolean v2, p0, Lokhttp3/ConnectionSpec;->tls:Z
iget-boolean v3, p1, Lokhttp3/ConnectionSpec;->tls:Z
if-ne v2, v3, :cond_0
.line 217
iget-boolean v2, p0, Lokhttp3/ConnectionSpec;->tls:Z
if-eqz v2, :cond_3
.line 218
iget-object v2, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
iget-object v3, p1, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
invoke-static {v2, v3}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_0
.line 219
iget-object v2, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
iget-object v3, p1, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
invoke-static {v2, v3}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_0
.line 220
iget-boolean v2, p0, Lokhttp3/ConnectionSpec;->supportsTlsExtensions:Z
iget-boolean v3, p1, Lokhttp3/ConnectionSpec;->supportsTlsExtensions:Z
if-ne v2, v3, :cond_0
:cond_3
move v0, v1
.line 223
goto :goto_0
.end method
.method public hashCode()I
.locals 2
.prologue
.line 227
const/16 v0, 0x11
.line 228
iget-boolean v1, p0, Lokhttp3/ConnectionSpec;->tls:Z
if-eqz v1, :cond_0
.line 229
iget-object v0, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
invoke-static {v0}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
move-result v0
add-int/lit16 v0, v0, 0x20f
.line 230
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
invoke-static {v1}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
move-result v1
add-int/2addr v0, v1
.line 231
mul-int/lit8 v1, v0, 0x1f
iget-boolean v0, p0, Lokhttp3/ConnectionSpec;->supportsTlsExtensions:Z
if-eqz v0, :cond_1
const/4 v0, 0x0
:goto_0
add-int/2addr v0, v1
.line 233
:cond_0
return v0
.line 231
:cond_1
const/4 v0, 0x1
goto :goto_0
.end method
.method public isCompatible(Ljavax/net/ssl/SSLSocket;)Z
.locals 3
.prologue
const/4 v0, 0x0
.line 176
iget-boolean v1, p0, Lokhttp3/ConnectionSpec;->tls:Z
if-nez v1, :cond_1
.line 190
:cond_0
:goto_0
return v0
.line 180
:cond_1
iget-object v1, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
if-eqz v1, :cond_2
iget-object v1, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
.line 181
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
move-result-object v2
invoke-static {v1, v2}, Lokhttp3/ConnectionSpec;->nonEmptyIntersection([Ljava/lang/String;[Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_0
.line 185
:cond_2
iget-object v1, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
if-eqz v1, :cond_3
iget-object v1, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
.line 186
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
move-result-object v2
invoke-static {v1, v2}, Lokhttp3/ConnectionSpec;->nonEmptyIntersection([Ljava/lang/String;[Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_0
.line 190
:cond_3
const/4 v0, 0x1
goto :goto_0
.end method
.method public isTls()Z
.locals 1
.prologue
.line 93
iget-boolean v0, p0, Lokhttp3/ConnectionSpec;->tls:Z
return v0
.end method
.method public supportsTlsExtensions()Z
.locals 1
.prologue
.line 125
iget-boolean v0, p0, Lokhttp3/ConnectionSpec;->supportsTlsExtensions:Z
return v0
.end method
.method public tlsVersions()Ljava/util/List;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List",
"<",
"Lokhttp3/TlsVersion;",
">;"
}
.end annotation
.prologue
.line 115
iget-object v0, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
if-nez v0, :cond_0
const/4 v0, 0x0
.line 121
:goto_0
return-object v0
.line 117
:cond_0
iget-object v0, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
array-length v0, v0
new-array v1, v0, [Lokhttp3/TlsVersion;
.line 118
const/4 v0, 0x0
:goto_1
iget-object v2, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
array-length v2, v2
if-ge v0, v2, :cond_1
.line 119
iget-object v2, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
aget-object v2, v2, v0
invoke-static {v2}, Lokhttp3/TlsVersion;->forJavaName(Ljava/lang/String;)Lokhttp3/TlsVersion;
move-result-object v2
aput-object v2, v1, v0
.line 118
add-int/lit8 v0, v0, 0x1
goto :goto_1
.line 121
:cond_1
invoke-static {v1}, Lokhttp3/internal/Util;->immutableList([Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
goto :goto_0
.end method
.method public toString()Ljava/lang/String;
.locals 4
.prologue
.line 237
iget-boolean v0, p0, Lokhttp3/ConnectionSpec;->tls:Z
if-nez v0, :cond_0
.line 238
const-string v0, "ConnectionSpec()"
.line 243
:goto_0
return-object v0
.line 241
:cond_0
iget-object v0, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
if-eqz v0, :cond_1
invoke-virtual {p0}, Lokhttp3/ConnectionSpec;->cipherSuites()Ljava/util/List;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
.line 242
:goto_1
iget-object v1, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
if-eqz v1, :cond_2
invoke-virtual {p0}, Lokhttp3/ConnectionSpec;->tlsVersions()Ljava/util/List;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
.line 243
:goto_2
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "ConnectionSpec(cipherSuites="
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v2, ", tlsVersions="
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ", supportsTlsExtensions="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-boolean v1, p0, Lokhttp3/ConnectionSpec;->supportsTlsExtensions:Z
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_0
.line 241
:cond_1
const-string v0, "[all enabled]"
goto :goto_1
.line 242
:cond_2
const-string v1, "[all enabled]"
goto :goto_2
.end method