2019-02-27 21:13:14 +00:00
|
|
|
.class final Lokhttp3/internal/g/c;
|
|
|
|
.super Lokhttp3/internal/g/f;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "Jdk9Platform.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-04-11 23:08:29 +00:00
|
|
|
.field final bsh:Ljava/lang/reflect/Method;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-11 23:08:29 +00:00
|
|
|
.field final bsi:Ljava/lang/reflect/Method;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method private constructor <init>(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {p0}, Lokhttp3/internal/g/f;-><init>()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-11 23:08:29 +00:00
|
|
|
iput-object p1, p0, Lokhttp3/internal/g/c;->bsh:Ljava/lang/reflect/Method;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-11 23:08:29 +00:00
|
|
|
iput-object p2, p0, Lokhttp3/internal/g/c;->bsi:Ljava/lang/reflect/Method;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-03-22 22:04:12 +00:00
|
|
|
.method public static BH()Lokhttp3/internal/g/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 5
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
const-class v0, Ljavax/net/ssl/SSLParameters;
|
|
|
|
|
|
|
|
const-string v1, "setApplicationProtocols"
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
new-array v2, v2, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
const-class v3, [Ljava/lang/String;
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-class v1, Ljavax/net/ssl/SSLSocket;
|
|
|
|
|
|
|
|
const-string v2, "getApplicationProtocol"
|
|
|
|
|
|
|
|
new-array v3, v4, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
new-instance v2, Lokhttp3/internal/g/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {v2, v0, v1}, Lokhttp3/internal/g/c;-><init>(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
return-object v2
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V
|
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljavax/net/ssl/SSLSocket;",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lokhttp3/u;",
|
|
|
|
">;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getSSLParameters()Ljavax/net/ssl/SSLParameters;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {p3}, Lokhttp3/internal/g/c;->af(Ljava/util/List;)Ljava/util/List;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
2019-04-11 23:08:29 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/internal/g/c;->bsh:Ljava/lang/reflect/Method;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-interface {p3}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
new-array v3, v3, [Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-interface {p3, v3}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
aput-object p3, v1, v2
|
|
|
|
|
|
|
|
invoke-virtual {v0, p2, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Ljavax/net/ssl/SSLSocket;->setSSLParameters(Ljavax/net/ssl/SSLParameters;)V
|
|
|
|
:try_end_0
|
2019-02-17 02:24:41 +00:00
|
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
|
2019-02-04 20:08:30 +00:00
|
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p1
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
:goto_0
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string p2, "unable to set ssl parameters"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {p2, p1}, Lokhttp3/internal/c;->a(Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/AssertionError;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
throw p1
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final b(Ljavax/net/ssl/SSLSocketFactory;)Ljavax/net/ssl/X509TrustManager;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
|
|
|
|
const-string v0, "clientBuilder.sslSocketFactory(SSLSocketFactory) not supported on JDK 9+"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final e(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String;
|
|
|
|
.locals 2
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
:try_start_0
|
2019-04-11 23:08:29 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/internal/g/c;->bsi:Ljava/lang/reflect/Method;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
const-string v0, ""
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
:try_end_0
|
2019-02-17 02:24:41 +00:00
|
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
|
2019-02-04 20:08:30 +00:00
|
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p1
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
:goto_1
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v0, "unable to get selected protocols"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {v0, p1}, Lokhttp3/internal/c;->a(Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/AssertionError;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
throw p1
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|