.class public final Lokhttp3/r; .super Ljava/lang/Object; .source "Handshake.java" # instance fields .field private final boH:Lokhttp3/z; .field public final boI:Lokhttp3/h; .field public final boJ:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Ljava/security/cert/Certificate;", ">;" } .end annotation .end field .field private final boK:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Ljava/security/cert/Certificate;", ">;" } .end annotation .end field # direct methods .method private constructor (Lokhttp3/z;Lokhttp3/h;Ljava/util/List;Ljava/util/List;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lokhttp3/z;", "Lokhttp3/h;", "Ljava/util/List<", "Ljava/security/cert/Certificate;", ">;", "Ljava/util/List<", "Ljava/security/cert/Certificate;", ">;)V" } .end annotation invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Lokhttp3/r;->boH:Lokhttp3/z; iput-object p2, p0, Lokhttp3/r;->boI:Lokhttp3/h; iput-object p3, p0, Lokhttp3/r;->boJ:Ljava/util/List; iput-object p4, p0, Lokhttp3/r;->boK:Ljava/util/List; return-void .end method .method public static a(Ljavax/net/ssl/SSLSession;)Lokhttp3/r; .locals 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getCipherSuite()Ljava/lang/String; move-result-object v0 if-eqz v0, :cond_5 const-string v1, "SSL_NULL_WITH_NULL_NULL" invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 if-nez v1, :cond_4 invoke-static {v0}, Lokhttp3/h;->dG(Ljava/lang/String;)Lokhttp3/h; move-result-object v0 invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getProtocol()Ljava/lang/String; move-result-object v1 if-eqz v1, :cond_3 const-string v2, "NONE" invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v2 if-nez v2, :cond_2 invoke-static {v1}, Lokhttp3/z;->dY(Ljava/lang/String;)Lokhttp3/z; move-result-object v1 :try_start_0 invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getPeerCertificates()[Ljava/security/cert/Certificate; move-result-object v2 :try_end_0 .catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 const/4 v2, 0x0 :goto_0 if-eqz v2, :cond_0 invoke-static {v2}, Lokhttp3/internal/c;->n([Ljava/lang/Object;)Ljava/util/List; move-result-object v2 goto :goto_1 :cond_0 invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List; move-result-object v2 :goto_1 invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getLocalCertificates()[Ljava/security/cert/Certificate; move-result-object p0 if-eqz p0, :cond_1 invoke-static {p0}, Lokhttp3/internal/c;->n([Ljava/lang/Object;)Ljava/util/List; move-result-object p0 goto :goto_2 :cond_1 invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List; move-result-object p0 :goto_2 new-instance v3, Lokhttp3/r; invoke-direct {v3, v1, v0, v2, p0}, Lokhttp3/r;->(Lokhttp3/z;Lokhttp3/h;Ljava/util/List;Ljava/util/List;)V return-object v3 :cond_2 new-instance p0, Ljava/io/IOException; const-string v0, "tlsVersion == NONE" invoke-direct {p0, v0}, Ljava/io/IOException;->(Ljava/lang/String;)V throw p0 :cond_3 new-instance p0, Ljava/lang/IllegalStateException; const-string v0, "tlsVersion == null" invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p0 :cond_4 new-instance p0, Ljava/io/IOException; const-string v0, "cipherSuite == SSL_NULL_WITH_NULL_NULL" invoke-direct {p0, v0}, Ljava/io/IOException;->(Ljava/lang/String;)V throw p0 :cond_5 new-instance p0, Ljava/lang/IllegalStateException; const-string v0, "cipherSuite == null" invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p0 .end method # virtual methods .method public final equals(Ljava/lang/Object;)Z .locals 3 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param instance-of v0, p1, Lokhttp3/r; const/4 v1, 0x0 if-nez v0, :cond_0 return v1 :cond_0 check-cast p1, Lokhttp3/r; iget-object v0, p0, Lokhttp3/r;->boH:Lokhttp3/z; iget-object v2, p1, Lokhttp3/r;->boH:Lokhttp3/z; invoke-virtual {v0, v2}, Lokhttp3/z;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_1 iget-object v0, p0, Lokhttp3/r;->boI:Lokhttp3/h; iget-object v2, p1, Lokhttp3/r;->boI:Lokhttp3/h; invoke-virtual {v0, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_1 iget-object v0, p0, Lokhttp3/r;->boJ:Ljava/util/List; iget-object v2, p1, Lokhttp3/r;->boJ:Ljava/util/List; invoke-interface {v0, v2}, Ljava/util/List;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_1 iget-object v0, p0, Lokhttp3/r;->boK:Ljava/util/List; iget-object p1, p1, Lokhttp3/r;->boK:Ljava/util/List; invoke-interface {v0, p1}, Ljava/util/List;->equals(Ljava/lang/Object;)Z move-result p1 if-eqz p1, :cond_1 const/4 p1, 0x1 return p1 :cond_1 return v1 .end method .method public final hashCode()I .locals 2 iget-object v0, p0, Lokhttp3/r;->boH:Lokhttp3/z; invoke-virtual {v0}, Lokhttp3/z;->hashCode()I move-result v0 add-int/lit16 v0, v0, 0x20f mul-int/lit8 v0, v0, 0x1f iget-object v1, p0, Lokhttp3/r;->boI:Lokhttp3/h; invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I move-result v1 add-int/2addr v0, v1 mul-int/lit8 v0, v0, 0x1f iget-object v1, p0, Lokhttp3/r;->boJ:Ljava/util/List; invoke-interface {v1}, Ljava/util/List;->hashCode()I move-result v1 add-int/2addr v0, v1 mul-int/lit8 v0, v0, 0x1f iget-object v1, p0, Lokhttp3/r;->boK:Ljava/util/List; invoke-interface {v1}, Ljava/util/List;->hashCode()I move-result v1 add-int/2addr v0, v1 return v0 .end method