.class public final Lokhttp3/h$b; .super Ljava/lang/Object; .source "CertificatePinner.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lokhttp3/h; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "b" .end annotation # direct methods .method private constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public synthetic constructor (B)V .locals 0 invoke-direct {p0}, Lokhttp3/h$b;->()V return-void .end method .method public static a(Ljava/security/cert/Certificate;)Ljava/lang/String; .locals 2 const-string v0, "certificate" invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V instance-of v0, p0, Ljava/security/cert/X509Certificate; if-eqz v0, :cond_0 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "sha256/" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V check-cast p0, Ljava/security/cert/X509Certificate; invoke-static {p0}, Lokhttp3/h$b;->d(Ljava/security/cert/X509Certificate;)Lokio/ByteString; move-result-object p0 invoke-virtual {p0}, Lokio/ByteString;->It()Ljava/lang/String; move-result-object p0 invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 return-object p0 :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; const-string v0, "Certificate pinning requires X509 certificates" invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public static d(Ljava/security/cert/X509Certificate;)Lokio/ByteString; .locals 1 const-string v0, "$this$toSha256ByteString" invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V sget-object v0, Lokio/ByteString;->bBE:Lokio/ByteString$a; invoke-virtual {p0}, Ljava/security/cert/X509Certificate;->getPublicKey()Ljava/security/PublicKey; move-result-object p0 const-string v0, "publicKey" invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-interface {p0}, Ljava/security/PublicKey;->getEncoded()[B move-result-object p0 const-string v0, "publicKey.encoded" invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-static {p0}, Lokio/ByteString$a;->E([B)Lokio/ByteString; move-result-object p0 const-string v0, "SHA-256" invoke-virtual {p0, v0}, Lokio/ByteString;->eu(Ljava/lang/String;)Lokio/ByteString; move-result-object p0 return-object p0 .end method