297 lines
6.3 KiB
Smali
297 lines
6.3 KiB
Smali
.class public final Lokhttp3/ConnectionSpec$Builder;
|
|
.super Ljava/lang/Object;
|
|
.source "ConnectionSpec.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/ConnectionSpec;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Builder"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field a:Z
|
|
|
|
.field b:[Ljava/lang/String;
|
|
|
|
.field c:[Ljava/lang/String;
|
|
|
|
.field d:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lokhttp3/ConnectionSpec;)V
|
|
.locals 1
|
|
|
|
.line 263
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 264
|
|
iget-boolean v0, p1, Lokhttp3/ConnectionSpec;->d:Z
|
|
|
|
iput-boolean v0, p0, Lokhttp3/ConnectionSpec$Builder;->a:Z
|
|
|
|
.line 265
|
|
iget-object v0, p1, Lokhttp3/ConnectionSpec;->f:[Ljava/lang/String;
|
|
|
|
iput-object v0, p0, Lokhttp3/ConnectionSpec$Builder;->b:[Ljava/lang/String;
|
|
|
|
.line 266
|
|
iget-object v0, p1, Lokhttp3/ConnectionSpec;->g:[Ljava/lang/String;
|
|
|
|
iput-object v0, p0, Lokhttp3/ConnectionSpec$Builder;->c:[Ljava/lang/String;
|
|
|
|
.line 267
|
|
iget-boolean p1, p1, Lokhttp3/ConnectionSpec;->e:Z
|
|
|
|
iput-boolean p1, p0, Lokhttp3/ConnectionSpec$Builder;->d:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>(Z)V
|
|
.locals 0
|
|
|
|
.line 259
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 260
|
|
iput-boolean p1, p0, Lokhttp3/ConnectionSpec$Builder;->a:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Z)Lokhttp3/ConnectionSpec$Builder;
|
|
.locals 1
|
|
|
|
.line 326
|
|
iget-boolean v0, p0, Lokhttp3/ConnectionSpec$Builder;->a:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 327
|
|
iput-boolean p1, p0, Lokhttp3/ConnectionSpec$Builder;->d:Z
|
|
|
|
return-object p0
|
|
|
|
.line 326
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "no TLS extensions for cleartext connections"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public varargs a([Ljava/lang/String;)Lokhttp3/ConnectionSpec$Builder;
|
|
.locals 1
|
|
|
|
.line 287
|
|
iget-boolean v0, p0, Lokhttp3/ConnectionSpec$Builder;->a:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 289
|
|
array-length v0, p1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 293
|
|
invoke-virtual {p1}, [Ljava/lang/String;->clone()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, [Ljava/lang/String;
|
|
|
|
iput-object p1, p0, Lokhttp3/ConnectionSpec$Builder;->b:[Ljava/lang/String;
|
|
|
|
return-object p0
|
|
|
|
.line 290
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "At least one cipher suite is required"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 287
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "no cipher suites for cleartext connections"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public varargs a([Lokhttp3/CipherSuite;)Lokhttp3/ConnectionSpec$Builder;
|
|
.locals 3
|
|
|
|
.line 277
|
|
iget-boolean v0, p0, Lokhttp3/ConnectionSpec$Builder;->a:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 279
|
|
array-length v0, p1
|
|
|
|
new-array v0, v0, [Ljava/lang/String;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 280
|
|
:goto_0
|
|
array-length v2, p1
|
|
|
|
if-ge v1, v2, :cond_0
|
|
|
|
.line 281
|
|
aget-object v2, p1, v1
|
|
|
|
iget-object v2, v2, Lokhttp3/CipherSuite;->bi:Ljava/lang/String;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 283
|
|
:cond_0
|
|
invoke-virtual {p0, v0}, Lokhttp3/ConnectionSpec$Builder;->a([Ljava/lang/String;)Lokhttp3/ConnectionSpec$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 277
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "no cipher suites for cleartext connections"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public varargs a([Lokhttp3/TlsVersion;)Lokhttp3/ConnectionSpec$Builder;
|
|
.locals 3
|
|
|
|
.line 304
|
|
iget-boolean v0, p0, Lokhttp3/ConnectionSpec$Builder;->a:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 306
|
|
array-length v0, p1
|
|
|
|
new-array v0, v0, [Ljava/lang/String;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 307
|
|
:goto_0
|
|
array-length v2, p1
|
|
|
|
if-ge v1, v2, :cond_0
|
|
|
|
.line 308
|
|
aget-object v2, p1, v1
|
|
|
|
iget-object v2, v2, Lokhttp3/TlsVersion;->javaName:Ljava/lang/String;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 311
|
|
:cond_0
|
|
invoke-virtual {p0, v0}, Lokhttp3/ConnectionSpec$Builder;->b([Ljava/lang/String;)Lokhttp3/ConnectionSpec$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 304
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "no TLS versions for cleartext connections"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public a()Lokhttp3/ConnectionSpec;
|
|
.locals 1
|
|
|
|
.line 332
|
|
new-instance v0, Lokhttp3/ConnectionSpec;
|
|
|
|
invoke-direct {v0, p0}, Lokhttp3/ConnectionSpec;-><init>(Lokhttp3/ConnectionSpec$Builder;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public varargs b([Ljava/lang/String;)Lokhttp3/ConnectionSpec$Builder;
|
|
.locals 1
|
|
|
|
.line 315
|
|
iget-boolean v0, p0, Lokhttp3/ConnectionSpec$Builder;->a:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 317
|
|
array-length v0, p1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 321
|
|
invoke-virtual {p1}, [Ljava/lang/String;->clone()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, [Ljava/lang/String;
|
|
|
|
iput-object p1, p0, Lokhttp3/ConnectionSpec$Builder;->c:[Ljava/lang/String;
|
|
|
|
return-object p0
|
|
|
|
.line 318
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "At least one TLS version is required"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 315
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "no TLS versions for cleartext connections"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|