2020-09-22 07:09:10 +00:00
|
|
|
.class public final Lg0/h;
|
2020-07-23 01:06:17 +00:00
|
|
|
.super Ljava/lang/Object;
|
2020-10-05 23:18:16 +00:00
|
|
|
.source "CertificatePinner.kt"
|
2020-07-23 01:06:17 +00:00
|
|
|
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lg0/h$b;,
|
|
|
|
Lg0/h$a;
|
|
|
|
}
|
|
|
|
.end annotation
|
2020-07-23 01:06:17 +00:00
|
|
|
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
# static fields
|
|
|
|
.field public static final c:Lg0/h;
|
|
|
|
|
|
|
|
.field public static final d:Lg0/h$a;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final a:Ljava/util/Set;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Set<",
|
|
|
|
"Lg0/h$b;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
.field public final b:Lg0/h0/m/c;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
|
|
|
|
2020-09-29 21:44:44 +00:00
|
|
|
# direct methods
|
2020-10-05 23:18:16 +00:00
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
new-instance v0, Lg0/h$a;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lg0/h$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
sput-object v0, Lg0/h;->d:Lg0/h$a;
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
new-instance v2, Lg0/h;
|
|
|
|
|
|
|
|
invoke-static {v0}, Lc0/i/f;->toSet(Ljava/lang/Iterable;)Ljava/util/Set;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v3, 0x2
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-direct {v2, v0, v1, v3}, Lg0/h;-><init>(Ljava/util/Set;Lg0/h0/m/c;I)V
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
sput-object v2, Lg0/h;->c:Lg0/h;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Ljava/util/Set;Lg0/h0/m/c;)V
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/Set<",
|
|
|
|
"Lg0/h$b;",
|
|
|
|
">;",
|
|
|
|
"Lg0/h0/m/c;",
|
|
|
|
")V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "pins"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
iput-object p1, p0, Lg0/h;->a:Ljava/util/Set;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
iput-object p2, p0, Lg0/h;->b:Lg0/h0/m/c;
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
.method public constructor <init>(Ljava/util/Set;Lg0/h0/m/c;I)V
|
|
|
|
.locals 0
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
and-int/lit8 p2, p3, 0x2
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const/4 p2, 0x0
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const-string p3, "pins"
|
|
|
|
|
|
|
|
invoke-static {p1, p3}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
iput-object p1, p0, Lg0/h;->a:Ljava/util/Set;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
iput-object p2, p0, Lg0/h;->b:Lg0/h0/m/c;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
return-void
|
2020-07-23 01:06:17 +00:00
|
|
|
.end method
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
# virtual methods
|
2020-10-05 23:18:16 +00:00
|
|
|
.method public final a(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
.locals 8
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
|
|
"+",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"+",
|
|
|
|
"Ljava/security/cert/X509Certificate;",
|
|
|
|
">;>;)V"
|
|
|
|
}
|
2020-07-23 01:06:17 +00:00
|
|
|
.end annotation
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const-string v0, "hostname"
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const-string v1, "cleanedPeerCertificatesFn"
|
|
|
|
|
|
|
|
invoke-static {p2, v1}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
iget-object v1, p0, Lg0/h;->a:Ljava/util/Set;
|
|
|
|
|
|
|
|
sget-object v2, Lc0/i/l;->d:Lc0/i/l;
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:goto_0
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result v3
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const/4 v4, 0x0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-eqz v3, :cond_7
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result-object v3
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-object v5, v3
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
check-cast v5, Lg0/h$b;
|
|
|
|
|
|
|
|
if-eqz v5, :cond_6
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v6, 0x2
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const-string v7, "**."
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v4, v7, v5, v6}, Lc0/t/k;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result v7
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-nez v7, :cond_5
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const-string v7, "*."
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v4, v7, v5, v6}, Lc0/t/k;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result v5
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-nez v5, :cond_4
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v4}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result v5
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-eqz v5, :cond_0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/List;->isEmpty()Z
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result v5
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-eqz v5, :cond_1
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
new-instance v2, Ljava/util/ArrayList;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:cond_1
|
|
|
|
instance-of v5, v2, Lc0/n/c/x/a;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-eqz v5, :cond_3
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
instance-of v5, v2, Lc0/n/c/x/c;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-eqz v5, :cond_2
|
|
|
|
|
|
|
|
goto :goto_1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:cond_2
|
2020-10-05 23:18:16 +00:00
|
|
|
const-string p1, "kotlin.collections.MutableList"
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v2, p1}, Lc0/n/c/w;->throwCce(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
throw v4
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:cond_3
|
|
|
|
:goto_1
|
|
|
|
invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
goto :goto_0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:cond_4
|
|
|
|
throw v4
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:cond_5
|
|
|
|
throw v4
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:cond_6
|
|
|
|
throw v4
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:cond_7
|
|
|
|
invoke-interface {v2}, Ljava/util/List;->isEmpty()Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result v0
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-eqz v0, :cond_8
|
2020-07-23 01:06:17 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:cond_8
|
|
|
|
invoke-interface {p2}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result-object p2
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
check-cast p2, Ljava/util/List;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result-object v0
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:cond_9
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result v1
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-eqz v1, :cond_b
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result-object v1
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
check-cast v1, Ljava/security/cert/X509Certificate;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result-object v1
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result v3
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-eqz v3, :cond_9
|
2020-09-09 19:21:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result-object p1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
check-cast p1, Lg0/h$b;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-eqz p1, :cond_a
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
throw v4
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:cond_a
|
|
|
|
throw v4
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:cond_b
|
|
|
|
const-string v0, "Certificate pinning failure!"
|
|
|
|
|
|
|
|
const-string v1, "\n Peer certificate chain:"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lf/e/c/a/a;->J(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p2
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:goto_2
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result v1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const-string v3, "\n "
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-eqz v1, :cond_c
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result-object v1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
check-cast v1, Ljava/security/cert/X509Certificate;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
sget-object v3, Lg0/h;->d:Lg0/h$a;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-virtual {v3, v1}, Lg0/h$a;->a(Ljava/security/cert/Certificate;)Ljava/lang/String;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result-object v3
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const-string v3, ": "
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-virtual {v1}, Ljava/security/cert/X509Certificate;->getSubjectDN()Ljava/security/Principal;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result-object v1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const-string v3, "element.subjectDN"
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v1, v3}, Lc0/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-interface {v1}, Ljava/security/Principal;->getName()Ljava/lang/String;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
const-string p2, "\n Pinned certificates for "
|
|
|
|
|
|
|
|
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p1, ":"
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_d
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p2
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
check-cast p2, Lg0/h$b;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
goto :goto_3
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:cond_d
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result-object p1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const-string p2, "StringBuilder().apply(builderAction).toString()"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lc0/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
new-instance p2, Ljavax/net/ssl/SSLPeerUnverifiedException;
|
|
|
|
|
|
|
|
invoke-direct {p2, p1}, Ljavax/net/ssl/SSLPeerUnverifiedException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p2
|
2020-09-16 23:45:23 +00:00
|
|
|
.end method
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
.method public final b(Lg0/h0/m/c;)Lg0/h;
|
|
|
|
.locals 2
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const-string v0, "certificateChainCleaner"
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
iget-object v0, p0, Lg0/h;->b:Lg0/h0/m/c;
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v0, p1}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result v0
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
goto :goto_0
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:cond_0
|
|
|
|
new-instance v0, Lg0/h;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lg0/h;->a:Ljava/util/Set;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-direct {v0, v1, p1}, Lg0/h;-><init>(Ljava/util/Set;Lg0/h0/m/c;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:goto_0
|
|
|
|
return-object v0
|
|
|
|
.end method
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
|
|
.locals 2
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
instance-of v0, p1, Lg0/h;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
check-cast p1, Lg0/h;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
iget-object v0, p1, Lg0/h;->a:Ljava/util/Set;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
iget-object v1, p0, Lg0/h;->a:Ljava/util/Set;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result v0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
iget-object p1, p1, Lg0/h;->b:Lg0/h0/m/c;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
iget-object v0, p0, Lg0/h;->b:Lg0/h0/m/c;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result p1
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-eqz p1, :cond_0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const/4 p1, 0x1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
goto :goto_0
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:goto_0
|
|
|
|
return p1
|
|
|
|
.end method
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
.method public hashCode()I
|
|
|
|
.locals 2
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
iget-object v0, p0, Lg0/h;->a:Ljava/util/Set;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result v0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
add-int/lit16 v0, v0, 0x5ed
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
mul-int/lit8 v0, v0, 0x29
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
iget-object v1, p0, Lg0/h;->b:Lg0/h0/m/c;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
if-eqz v1, :cond_0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result v1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
2020-09-29 21:44:44 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:goto_0
|
|
|
|
add-int/2addr v0, v1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
return v0
|
2020-07-23 01:06:17 +00:00
|
|
|
.end method
|