262 lines
4.9 KiB
Smali
262 lines
4.9 KiB
Smali
.class public final La0/g$b;
|
|
.super Ljava/lang/Object;
|
|
.source "CertificatePinner.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = La0/g;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "b"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/lang/String;
|
|
|
|
.field public final b:Ljava/lang/String;
|
|
|
|
.field public final c:Ljava/lang/String;
|
|
|
|
.field public final d:Lokio/ByteString;
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Ljava/lang/String;)Z
|
|
.locals 5
|
|
|
|
const-string v0, "hostname"
|
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, La0/g$b;->a:Ljava/lang/String;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "*."
|
|
|
|
const/4 v3, 0x2
|
|
|
|
invoke-static {v0, v2, v1, v3}, Lw/a0/n;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const/16 v0, 0x2e
|
|
|
|
const/4 v2, 0x6
|
|
|
|
invoke-static {p1, v0, v1, v1, v2}, Lw/a0/s;->indexOf$default(Ljava/lang/CharSequence;CIZI)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v2, v0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
iget-object v4, p0, La0/g$b;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/String;->length()I
|
|
|
|
move-result v4
|
|
|
|
if-ne v2, v4, :cond_0
|
|
|
|
iget-object v2, p0, La0/g$b;->b:Ljava/lang/String;
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
const/4 v4, 0x4
|
|
|
|
invoke-static {p1, v2, v0, v1, v4}, Lw/a0/n;->startsWith$default(Ljava/lang/String;Ljava/lang/String;IZI)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_0
|
|
return v1
|
|
|
|
:cond_1
|
|
iget-object v0, p0, La0/g$b;->b:Ljava/lang/String;
|
|
|
|
invoke-static {p1, v0}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 2
|
|
|
|
if-eq p0, p1, :cond_1
|
|
|
|
instance-of v0, p1, La0/g$b;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
check-cast p1, La0/g$b;
|
|
|
|
iget-object v0, p0, La0/g$b;->a:Ljava/lang/String;
|
|
|
|
iget-object v1, p1, La0/g$b;->a:Ljava/lang/String;
|
|
|
|
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 v0, p0, La0/g$b;->b:Ljava/lang/String;
|
|
|
|
iget-object v1, p1, La0/g$b;->b:Ljava/lang/String;
|
|
|
|
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 v0, p0, La0/g$b;->c:Ljava/lang/String;
|
|
|
|
iget-object v1, p1, La0/g$b;->c:Ljava/lang/String;
|
|
|
|
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 v0, p0, La0/g$b;->d:Lokio/ByteString;
|
|
|
|
iget-object p1, p1, La0/g$b;->d:Lokio/ByteString;
|
|
|
|
invoke-static {v0, p1}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 3
|
|
|
|
iget-object v0, p0, La0/g$b;->a:Ljava/lang/String;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-object v2, p0, La0/g$b;->b:Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v2, 0x0
|
|
|
|
:goto_1
|
|
add-int/2addr v0, v2
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-object v2, p0, La0/g$b;->c:Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v2, 0x0
|
|
|
|
:goto_2
|
|
add-int/2addr v0, v2
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-object v2, p0, La0/g$b;->d:Lokio/ByteString;
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
invoke-virtual {v2}, Lokio/ByteString;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
:cond_3
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-object v1, p0, La0/g$b;->c:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, La0/g$b;->d:Lokio/ByteString;
|
|
|
|
invoke-virtual {v1}, Lokio/ByteString;->a()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|