2019-12-21 01:41:59 +00:00
|
|
|
.class public final La0/g;
|
2020-02-20 19:33:18 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "CertificatePinner.kt"
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
2020-03-14 02:12:46 +00:00
|
|
|
La0/g$b;,
|
|
|
|
La0/g$a;
|
2019-12-21 01:41:59 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
# static fields
|
|
|
|
.field public static final c:La0/g;
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
.field public static final d:La0/g$a;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
# instance fields
|
2020-02-20 19:33:18 +00:00
|
|
|
.field public final a:Ljava/util/Set;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Set<",
|
2020-03-14 02:12:46 +00:00
|
|
|
"La0/g$b;",
|
2020-02-20 19:33:18 +00:00
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public final b:La0/c0/i/c;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-02-20 19:33:18 +00:00
|
|
|
.method public static constructor <clinit>()V
|
2020-03-14 02:12:46 +00:00
|
|
|
.locals 3
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
new-instance v0, La0/g$a;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-direct {v0, v1}, La0/g$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
sput-object v0, La0/g;->d:La0/g$a;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
new-instance v2, La0/g;
|
|
|
|
|
|
|
|
invoke-static {v0}, Lw/q/l;->toSet(Ljava/lang/Iterable;)Ljava/util/Set;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-direct {v2, v0, v1}, La0/g;-><init>(Ljava/util/Set;La0/c0/i/c;)V
|
|
|
|
|
|
|
|
sput-object v2, La0/g;->c:La0/g;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Ljava/util/Set;La0/c0/i/c;)V
|
2020-03-14 02:12:46 +00:00
|
|
|
.locals 1
|
2020-02-20 19:33:18 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/Set<",
|
2020-03-14 02:12:46 +00:00
|
|
|
"La0/g$b;",
|
2020-02-20 19:33:18 +00:00
|
|
|
">;",
|
|
|
|
"La0/c0/i/c;",
|
|
|
|
")V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
const-string v0, "pins"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, La0/g;->a:Ljava/util/Set;
|
|
|
|
|
|
|
|
iput-object p2, p0, La0/g;->b:La0/c0/i/c;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-02-20 19:33:18 +00:00
|
|
|
.method public final a(Ljava/lang/String;Ljava/util/List;)V
|
|
|
|
.locals 1
|
2019-12-21 01:41:59 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
2020-02-20 19:33:18 +00:00
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"+",
|
|
|
|
"Ljava/security/cert/Certificate;",
|
|
|
|
">;)V"
|
2019-12-21 01:41:59 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljavax/net/ssl/SSLPeerUnverifiedException;
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 v0, 0x0
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
if-eqz p1, :cond_1
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
if-eqz p2, :cond_0
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
new-instance v0, La0/g$c;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-direct {v0, p0, p2, p1}, La0/g$c;-><init>(La0/g;Ljava/util/List;Ljava/lang/String;)V
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1, v0}, La0/g;->a(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "peerCertificates"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "hostname"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V
|
2020-03-14 02:12:46 +00:00
|
|
|
.locals 11
|
2020-02-20 19:33:18 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
|
|
"+",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"+",
|
|
|
|
"Ljava/security/cert/X509Certificate;",
|
|
|
|
">;>;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
const/4 v0, 0x0
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-eqz p1, :cond_11
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-eqz p2, :cond_10
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
sget-object v1, Lw/q/o;->d:Lw/q/o;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
iget-object v2, p0, La0/g;->a:Ljava/util/Set;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
move-result-object v2
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:cond_0
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
move-result v3
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-eqz v3, :cond_4
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
move-result-object v3
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
check-cast v3, La0/g$b;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v3, p1}, La0/g$b;->a(Ljava/lang/String;)Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
:cond_1
|
2020-03-14 02:12:46 +00:00
|
|
|
instance-of v4, v1, Lw/u/b/z/a;
|
|
|
|
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
|
|
|
|
instance-of v4, v1, Lw/u/b/z/d;
|
|
|
|
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string p1, "kotlin.collections.MutableList"
|
|
|
|
|
|
|
|
invoke-static {v1, p1}, Lw/u/b/y;->throwCce(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
:goto_1
|
|
|
|
invoke-static {v1}, Lw/u/b/y;->castToList(Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-interface {v4, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-eqz v2, :cond_5
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
invoke-interface {p2}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
check-cast p2, Ljava/util/List;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:cond_6
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_c
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
check-cast v3, Ljava/security/cert/X509Certificate;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
move-result-object v4
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
move-object v5, v0
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
move-object v6, v5
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:cond_7
|
|
|
|
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
move-result v7
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-eqz v7, :cond_6
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
check-cast v7, La0/g$b;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
iget-object v8, v7, La0/g$b;->c:Ljava/lang/String;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v8}, Ljava/lang/String;->hashCode()I
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
move-result v9
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
const v10, 0x68547ca
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-eq v9, v10, :cond_9
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
const v10, 0x7a530ee8
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-ne v9, v10, :cond_b
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
const-string v9, "sha256/"
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
move-result v8
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-eqz v8, :cond_b
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-nez v6, :cond_8
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
sget-object v6, La0/g;->d:La0/g$a;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v6, v3}, La0/g$a;->b(Ljava/security/cert/X509Certificate;)Lokio/ByteString;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:cond_8
|
|
|
|
iget-object v7, v7, La0/g$b;->d:Lokio/ByteString;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-static {v7, v6}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
move-result v7
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-eqz v7, :cond_7
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
return-void
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:cond_9
|
|
|
|
const-string v9, "sha1/"
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
move-result v8
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-eqz v8, :cond_b
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-nez v5, :cond_a
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
sget-object v5, La0/g;->d:La0/g$a;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v5, v3}, La0/g$a;->a(Ljava/security/cert/X509Certificate;)Lokio/ByteString;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
move-result-object v5
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:cond_a
|
|
|
|
iget-object v7, v7, La0/g$b;->d:Lokio/ByteString;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-static {v7, v5}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
move-result v7
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-eqz v7, :cond_7
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:cond_b
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance p1, Ljava/lang/AssertionError;
|
|
|
|
|
|
|
|
const-string p2, "unsupported hashAlgorithm: "
|
|
|
|
|
|
|
|
invoke-static {p2}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
iget-object v0, v7, La0/g$b;->c:Ljava/lang/String;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:cond_c
|
|
|
|
const-string v0, "Certificate pinning failure!"
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
const-string v2, "\n Peer certificate chain:"
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-static {v0, v2}, Le/e/b/a/a;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
move-result-object v0
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:goto_2
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
const-string v3, "\n "
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-eqz v2, :cond_e
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Ljava/security/cert/X509Certificate;
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-eqz v2, :cond_d
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
sget-object v3, La0/g;->d:La0/g$a;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v3, v2}, La0/g$a;->a(Ljava/security/cert/Certificate;)Ljava/lang/String;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
const-string v3, ": "
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/security/cert/X509Certificate;->getSubjectDN()Ljava/security/Principal;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "x509Certificate.subjectDN"
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/security/Principal;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
goto :goto_2
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:cond_d
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance p1, Lw/l;
|
|
|
|
|
|
|
|
const-string p2, "null cannot be cast to non-null type java.security.cert.X509Certificate"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Lw/l;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:cond_e
|
2020-02-20 19:33:18 +00:00
|
|
|
const-string p2, "\n Pinned certificates for "
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
const-string p1, ":"
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:goto_3
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
if-eqz p2, :cond_f
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
check-cast p2, La0/g$b;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
goto :goto_3
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:cond_f
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const-string p2, "StringBuilder().apply(builderAction).toString()"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lw/u/b/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-03-14 02:12:46 +00:00
|
|
|
|
|
|
|
:cond_10
|
|
|
|
const-string p1, "cleanedPeerCertificatesFn"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_11
|
|
|
|
const-string p1, "hostname"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
2020-02-20 19:33:18 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
instance-of v0, p1, La0/g;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
check-cast p1, La0/g;
|
|
|
|
|
|
|
|
iget-object v0, p1, La0/g;->a:Ljava/util/Set;
|
|
|
|
|
|
|
|
iget-object v1, p0, La0/g;->a:Ljava/util/Set;
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget-object p1, p1, La0/g;->b:La0/c0/i/c;
|
|
|
|
|
|
|
|
iget-object v0, p0, La0/g;->b:La0/c0/i/c;
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public hashCode()I
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, La0/g;->a:Ljava/util/Set;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
add-int/lit16 v0, v0, 0x5ed
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x29
|
|
|
|
|
|
|
|
iget-object v1, p0, La0/g;->b:La0/c0/i/c;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
:goto_0
|
|
|
|
add-int/2addr v0, v1
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
return v0
|
2019-12-21 01:41:59 +00:00
|
|
|
.end method
|