403 lines
9.9 KiB
Smali
403 lines
9.9 KiB
Smali
.class public final Lo0/g0/h/c;
|
|
.super Lo0/g0/h/f;
|
|
.source "Jdk8WithJettyBootPlatform.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lo0/g0/h/c$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final d:Ljava/lang/reflect/Method;
|
|
|
|
.field public final e:Ljava/lang/reflect/Method;
|
|
|
|
.field public final f:Ljava/lang/reflect/Method;
|
|
|
|
.field public final g:Ljava/lang/Class;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Class<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final h:Ljava/lang/Class;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Class<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;Ljava/lang/Class;Ljava/lang/Class;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/reflect/Method;",
|
|
"Ljava/lang/reflect/Method;",
|
|
"Ljava/lang/reflect/Method;",
|
|
"Ljava/lang/Class<",
|
|
"*>;",
|
|
"Ljava/lang/Class<",
|
|
"*>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "putMethod"
|
|
|
|
invoke-static {p1, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "getMethod"
|
|
|
|
invoke-static {p2, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "removeMethod"
|
|
|
|
invoke-static {p3, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "clientProviderClass"
|
|
|
|
invoke-static {p4, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "serverProviderClass"
|
|
|
|
invoke-static {p5, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Lo0/g0/h/f;-><init>()V
|
|
|
|
iput-object p1, p0, Lo0/g0/h/c;->d:Ljava/lang/reflect/Method;
|
|
|
|
iput-object p2, p0, Lo0/g0/h/c;->e:Ljava/lang/reflect/Method;
|
|
|
|
iput-object p3, p0, Lo0/g0/h/c;->f:Ljava/lang/reflect/Method;
|
|
|
|
iput-object p4, p0, Lo0/g0/h/c;->g:Ljava/lang/Class;
|
|
|
|
iput-object p5, p0, Lo0/g0/h/c;->h:Ljava/lang/Class;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljavax/net/ssl/SSLSocket;)V
|
|
.locals 5
|
|
|
|
const-string v0, "failed to remove ALPN"
|
|
|
|
const-string v1, "sslSocket"
|
|
|
|
invoke-static {p1, v1}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lo0/g0/h/c;->f:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
aput-object p1, v3, v4
|
|
|
|
invoke-virtual {v1, v2, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
new-instance v1, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {v1, v0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
new-instance v1, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {v1, v0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public e(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljavax/net/ssl/SSLSocket;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lo0/y;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string p2, "failed to set ALPN"
|
|
|
|
const-string v0, "sslSocket"
|
|
|
|
invoke-static {p1, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "protocols"
|
|
|
|
invoke-static {p3, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p3, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
invoke-interface {p3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p3
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {p3}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-interface {p3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
move-object v4, v1
|
|
|
|
check-cast v4, Lo0/y;
|
|
|
|
sget-object v5, Lo0/y;->d:Lo0/y;
|
|
|
|
if-eq v4, v5, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v2, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
new-instance p3, Ljava/util/ArrayList;
|
|
|
|
const/16 v1, 0xa
|
|
|
|
invoke-static {v0, v1}, Lf/n/a/k/a;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-direct {p3, v1}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_2
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lo0/y;
|
|
|
|
iget-object v1, v1, Lo0/y;->protocol:Ljava/lang/String;
|
|
|
|
invoke-virtual {p3, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
:try_start_0
|
|
const-class v0, Lo0/g0/h/f;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-array v4, v1, [Ljava/lang/Class;
|
|
|
|
iget-object v5, p0, Lo0/g0/h/c;->g:Ljava/lang/Class;
|
|
|
|
aput-object v5, v4, v3
|
|
|
|
iget-object v5, p0, Lo0/g0/h/c;->h:Ljava/lang/Class;
|
|
|
|
aput-object v5, v4, v2
|
|
|
|
new-instance v5, Lo0/g0/h/c$a;
|
|
|
|
invoke-direct {v5, p3}, Lo0/g0/h/c$a;-><init>(Ljava/util/List;)V
|
|
|
|
invoke-static {v0, v4, v5}, Ljava/lang/reflect/Proxy;->newProxyInstance(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;
|
|
|
|
move-result-object p3
|
|
|
|
iget-object v0, p0, Lo0/g0/h/c;->d:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
aput-object p1, v1, v3
|
|
|
|
aput-object p3, v1, v2
|
|
|
|
invoke-virtual {v0, v4, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
new-instance p3, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {p3, p2, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw p3
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
new-instance p3, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {p3, p2, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw p3
|
|
.end method
|
|
|
|
.method public h(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String;
|
|
.locals 4
|
|
|
|
const-string v0, "failed to get ALPN selected protocol"
|
|
|
|
const-string v1, "socket"
|
|
|
|
invoke-static {p1, v1}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lo0/g0/h/c;->e:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object p1, v2, v3
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-virtual {v1, p1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Ljava/lang/reflect/Proxy;->getInvocationHandler(Ljava/lang/Object;)Ljava/lang/reflect/InvocationHandler;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
check-cast v1, Lo0/g0/h/c$a;
|
|
|
|
iget-boolean v2, v1, Lo0/g0/h/c$a;->a:Z
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
iget-object v2, v1, Lo0/g0/h/c$a;->b:Ljava/lang/String;
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
sget-object v1, Lo0/g0/h/f;->a:Lo0/g0/h/f;
|
|
|
|
const/4 v2, 0x4
|
|
|
|
const-string v3, "ALPN callback dropped: HTTP/2 is disabled. Is alpn-boot on the boot class path?"
|
|
|
|
invoke-virtual {v1, v2, v3, p1}, Lo0/g0/h/f;->k(ILjava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
iget-boolean v2, v1, Lo0/g0/h/c$a;->a:Z
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object p1, v1, Lo0/g0/h/c$a;->b:Ljava/lang/String;
|
|
|
|
:goto_0
|
|
return-object p1
|
|
|
|
:cond_2
|
|
new-instance p1, Lkotlin/TypeCastException;
|
|
|
|
const-string v1, "null cannot be cast to non-null type okhttp3.internal.platform.Jdk8WithJettyBootPlatform.AlpnProvider"
|
|
|
|
invoke-direct {p1, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
:try_end_0
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
new-instance v1, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {v1, v0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
new-instance v1, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {v1, v0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
.end method
|