apkfuckery/com.discord/smali_classes2/okhttp3/internal/g/a$a.smali
2019-03-03 00:27:57 +01:00

145 lines
3.4 KiB
Smali

.class final Lokhttp3/internal/g/a$a;
.super Lokhttp3/internal/i/c;
.source "AndroidPlatform.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/internal/g/a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "a"
.end annotation
# instance fields
.field private final bst:Ljava/lang/Object;
.field private final bsu:Ljava/lang/reflect/Method;
# direct methods
.method constructor <init>(Ljava/lang/Object;Ljava/lang/reflect/Method;)V
.locals 0
invoke-direct {p0}, Lokhttp3/internal/i/c;-><init>()V
iput-object p1, p0, Lokhttp3/internal/g/a$a;->bst:Ljava/lang/Object;
iput-object p2, p0, Lokhttp3/internal/g/a$a;->bsu:Ljava/lang/reflect/Method;
return-void
.end method
# virtual methods
.method public final b(Ljava/util/List;Ljava/lang/String;)Ljava/util/List;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/security/cert/Certificate;",
">;",
"Ljava/lang/String;",
")",
"Ljava/util/List<",
"Ljava/security/cert/Certificate;",
">;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljavax/net/ssl/SSLPeerUnverifiedException;
}
.end annotation
:try_start_0
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
new-array v0, v0, [Ljava/security/cert/X509Certificate;
invoke-interface {p1, v0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/security/cert/X509Certificate;
iget-object v0, p0, Lokhttp3/internal/g/a$a;->bsu:Ljava/lang/reflect/Method;
iget-object v1, p0, Lokhttp3/internal/g/a$a;->bst:Ljava/lang/Object;
const/4 v2, 0x3
new-array v2, v2, [Ljava/lang/Object;
const/4 v3, 0x0
aput-object p1, v2, v3
const/4 p1, 0x1
const-string v3, "RSA"
aput-object v3, v2, p1
const/4 p1, 0x2
aput-object p2, v2, p1
invoke-virtual {v0, v1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/List;
: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-object p1
:catch_0
move-exception p1
new-instance p2, Ljava/lang/AssertionError;
invoke-direct {p2, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw p2
:catch_1
move-exception p1
new-instance p2, Ljavax/net/ssl/SSLPeerUnverifiedException;
invoke-virtual {p1}, Ljava/lang/reflect/InvocationTargetException;->getMessage()Ljava/lang/String;
move-result-object v0
invoke-direct {p2, v0}, Ljavax/net/ssl/SSLPeerUnverifiedException;-><init>(Ljava/lang/String;)V
invoke-virtual {p2, p1}, Ljavax/net/ssl/SSLPeerUnverifiedException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
throw p2
.end method
.method public final equals(Ljava/lang/Object;)Z
.locals 0
instance-of p1, p1, Lokhttp3/internal/g/a$a;
return p1
.end method
.method public final hashCode()I
.locals 1
const/4 v0, 0x0
return v0
.end method