apkfuckery/com.discord/smali_classes2/o0/v.smali

429 lines
9.9 KiB
Smali
Raw Normal View History

2020-07-23 01:06:17 +00:00
.class public final Lo0/v;
2020-09-02 04:07:20 +00:00
.super Ljava/lang/Object;
.source "Handshake.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lo0/v$a;
}
.end annotation
# static fields
.field public static final synthetic e:[Lkotlin/reflect/KProperty;
.field public static final f:Lo0/v$a;
2020-07-23 01:06:17 +00:00
# instance fields
2020-09-02 04:07:20 +00:00
.field public final a:Lkotlin/Lazy;
.field public final b:Lo0/f0;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
.field public final c:Lo0/j;
.field public final d:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/security/cert/Certificate;",
">;"
}
.end annotation
.end field
2020-07-23 01:06:17 +00:00
# direct methods
2020-09-02 04:07:20 +00:00
.method public static constructor <clinit>()V
.locals 5
const/4 v0, 0x1
new-array v0, v0, [Lkotlin/reflect/KProperty;
new-instance v1, Lk0/o/c/r;
const-class v2, Lo0/v;
invoke-static {v2}, Lk0/o/c/t;->getOrCreateKotlinClass(Ljava/lang/Class;)Lk0/s/b;
move-result-object v2
const-string v3, "peerCertificates"
const-string v4, "peerCertificates()Ljava/util/List;"
invoke-direct {v1, v2, v3, v4}, Lk0/o/c/r;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
invoke-static {v1}, Lk0/o/c/t;->property1(Lk0/o/c/q;)Lk0/s/d;
const/4 v2, 0x0
aput-object v1, v0, v2
sput-object v0, Lo0/v;->e:[Lkotlin/reflect/KProperty;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
new-instance v0, Lo0/v$a;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
const/4 v1, 0x0
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
invoke-direct {v0, v1}, Lo0/v$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
sput-object v0, Lo0/v;->f:Lo0/v$a;
return-void
.end method
.method public constructor <init>(Lo0/f0;Lo0/j;Ljava/util/List;Lkotlin/jvm/functions/Function0;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lo0/f0;",
"Lo0/j;",
"Ljava/util/List<",
"+",
"Ljava/security/cert/Certificate;",
">;",
"Lkotlin/jvm/functions/Function0<",
"+",
"Ljava/util/List<",
"+",
"Ljava/security/cert/Certificate;",
">;>;)V"
}
.end annotation
const-string v0, "tlsVersion"
invoke-static {p1, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "cipherSuite"
invoke-static {p2, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "localCertificates"
invoke-static {p3, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "peerCertificatesFn"
invoke-static {p4, v0}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lo0/v;->b:Lo0/f0;
iput-object p2, p0, Lo0/v;->c:Lo0/j;
iput-object p3, p0, Lo0/v;->d:Ljava/util/List;
invoke-static {p4}, Lf/n/a/k/a;->lazy(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
2020-07-23 01:06:17 +00:00
move-result-object p1
2020-09-02 04:07:20 +00:00
iput-object p1, p0, Lo0/v;->a:Lkotlin/Lazy;
2020-07-23 01:06:17 +00:00
return-void
.end method
# virtual methods
2020-09-02 04:07:20 +00:00
.method public final a(Ljava/security/cert/Certificate;)Ljava/lang/String;
.locals 1
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
instance-of v0, p1, Ljava/security/cert/X509Certificate;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
if-eqz v0, :cond_0
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
check-cast p1, Ljava/security/cert/X509Certificate;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
invoke-virtual {p1}, Ljava/security/cert/X509Certificate;->getSubjectDN()Ljava/security/Principal;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
goto :goto_0
2020-07-23 01:06:17 +00:00
:cond_0
2020-09-02 04:07:20 +00:00
invoke-virtual {p1}, Ljava/security/cert/Certificate;->getType()Ljava/lang/String;
move-result-object p1
const-string v0, "type"
invoke-static {p1, v0}, Lk0/o/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:goto_0
return-object p1
.end method
.method public final b()Ljava/util/List;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/security/cert/Certificate;",
">;"
}
.end annotation
iget-object v0, p0, Lo0/v;->a:Lkotlin/Lazy;
sget-object v1, Lo0/v;->e:[Lkotlin/reflect/KProperty;
const/4 v2, 0x0
aget-object v1, v1, v2
invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/List;
2020-07-23 01:06:17 +00:00
return-object v0
.end method
2020-09-02 04:07:20 +00:00
.method public equals(Ljava/lang/Object;)Z
.locals 2
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
instance-of v0, p1, Lo0/v;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
if-eqz v0, :cond_0
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
check-cast p1, Lo0/v;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
iget-object v0, p1, Lo0/v;->b:Lo0/f0;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
iget-object v1, p0, Lo0/v;->b:Lo0/f0;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
if-ne v0, v1, :cond_0
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
iget-object v0, p1, Lo0/v;->c:Lo0/j;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
iget-object v1, p0, Lo0/v;->c:Lo0/j;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
invoke-static {v0, v1}, Lk0/o/c/i;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
move-result v0
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
if-eqz v0, :cond_0
invoke-virtual {p1}, Lo0/v;->b()Ljava/util/List;
2020-07-23 01:06:17 +00:00
move-result-object v0
2020-09-02 04:07:20 +00:00
invoke-virtual {p0}, Lo0/v;->b()Ljava/util/List;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
move-result-object v1
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
invoke-static {v0, v1}, Lk0/o/c/i;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
move-result v0
if-eqz v0, :cond_0
iget-object p1, p1, Lo0/v;->d:Ljava/util/List;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
iget-object v0, p0, Lo0/v;->d:Ljava/util/List;
invoke-static {p1, v0}, Lk0/o/c/i;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
2020-07-23 01:06:17 +00:00
goto :goto_0
:cond_0
2020-09-02 04:07:20 +00:00
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public hashCode()I
.locals 2
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
iget-object v0, p0, Lo0/v;->b:Lo0/f0;
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
invoke-virtual {v0}, Ljava/lang/Enum;->hashCode()I
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
move-result v0
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
add-int/lit16 v0, v0, 0x20f
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lo0/v;->c:Lo0/j;
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
add-int/2addr v1, v0
mul-int/lit8 v1, v1, 0x1f
invoke-virtual {p0}, Lo0/v;->b()Ljava/util/List;
2020-07-23 01:06:17 +00:00
move-result-object v0
2020-09-02 04:07:20 +00:00
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
move-result v0
2020-07-23 01:06:17 +00:00
2020-09-02 04:07:20 +00:00
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lo0/v;->d:Ljava/util/List;
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
add-int/2addr v1, v0
return v1
.end method
.method public toString()Ljava/lang/String;
.locals 6
const-string v0, "Handshake{"
const-string v1, "tlsVersion="
invoke-static {v0, v1}, Lf/e/b/a/a;->H(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-07-23 01:06:17 +00:00
move-result-object v0
2020-09-02 04:07:20 +00:00
iget-object v1, p0, Lo0/v;->b:Lo0/f0;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x20
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
const-string v2, "cipherSuite="
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, p0, Lo0/v;->c:Lo0/j;
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
const-string v2, "peerCertificates="
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Lo0/v;->b()Ljava/util/List;
move-result-object v2
new-instance v3, Ljava/util/ArrayList;
const/16 v4, 0xa
invoke-static {v2, v4}, Lf/n/a/k/a;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
move-result v5
invoke-direct {v3, v5}, Ljava/util/ArrayList;-><init>(I)V
invoke-interface {v2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v2
2020-07-23 01:06:17 +00:00
:goto_0
2020-09-02 04:07:20 +00:00
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v5
if-eqz v5, :cond_0
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/security/cert/Certificate;
invoke-virtual {p0, v5}, Lo0/v;->a(Ljava/security/cert/Certificate;)Ljava/lang/String;
move-result-object v5
invoke-interface {v3, v5}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
const-string v1, "localCertificates="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lo0/v;->d:Ljava/util/List;
new-instance v2, Ljava/util/ArrayList;
invoke-static {v1, v4}, Lf/n/a/k/a;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
move-result v3
invoke-direct {v2, v3}, Ljava/util/ArrayList;-><init>(I)V
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_1
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_1
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/security/cert/Certificate;
invoke-virtual {p0, v3}, Lo0/v;->a(Ljava/security/cert/Certificate;)Ljava/lang/String;
move-result-object v3
invoke-interface {v2, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
goto :goto_1
:cond_1
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x7d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
2020-07-23 01:06:17 +00:00
.end method