2020-09-02 04:07:20 +00:00
|
|
|
.class public final Lo0/h$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "CertificatePinner.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
2020-09-02 04:07:20 +00:00
|
|
|
value = Lo0/h;
|
2020-07-08 16:44:49 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "a"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(Ljava/security/cert/Certificate;)Ljava/lang/String;
|
2020-09-08 08:16:32 +00:00
|
|
|
.locals 1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
const-string v0, "sha256/"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
move-result-object v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
check-cast p1, Ljava/security/cert/X509Certificate;
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
invoke-virtual {p0, p1}, Lo0/h$a;->b(Ljava/security/cert/X509Certificate;)Lokio/ByteString;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {p1}, Lp0/y/a;->a(Lokio/ByteString;)Ljava/lang/String;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final b(Ljava/security/cert/X509Certificate;)Lokio/ByteString;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
sget-object v0, Lokio/ByteString;->g:Lokio/ByteString$a;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/security/cert/X509Certificate;->getPublicKey()Ljava/security/PublicKey;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v1, "publicKey"
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {p1, v1}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/security/PublicKey;->getEncoded()[B
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v1, "publicKey.encoded"
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {p1, v1}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/4 v1, 0x3
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/4 v2, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-static {v0, p1, v2, v2, v1}, Lokio/ByteString$a;->c(Lokio/ByteString$a;[BIII)Lokio/ByteString;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v0, "SHA-256"
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {p1, v0}, Lokio/ByteString;->f(Ljava/lang/String;)Lokio/ByteString;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|