191 lines
		
	
	
		
			4.0 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			191 lines
		
	
	
		
			4.0 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lokhttp3/TlsVersion$Companion;
 | |
| .super Ljava/lang/Object;
 | |
| .source "TlsVersion.kt"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Lokhttp3/TlsVersion;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x19
 | |
|     name = "Companion"
 | |
| .end annotation
 | |
| 
 | |
| .annotation runtime Lkotlin/Metadata;
 | |
|     bv = {
 | |
|         0x1,
 | |
|         0x0,
 | |
|         0x3
 | |
|     }
 | |
|     d1 = {
 | |
|         "\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\u0008\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J\u0010\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0007\u00a8\u0006\u0007"
 | |
|     }
 | |
|     d2 = {
 | |
|         "Lokhttp3/TlsVersion$Companion;",
 | |
|         "",
 | |
|         "()V",
 | |
|         "forJavaName",
 | |
|         "Lokhttp3/TlsVersion;",
 | |
|         "javaName",
 | |
|         "",
 | |
|         "okhttp"
 | |
|     }
 | |
|     k = 0x1
 | |
|     mv = {
 | |
|         0x1,
 | |
|         0x4,
 | |
|         0x0
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method private constructor <init>()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public synthetic constructor <init>(Lkotlin/jvm/internal/u;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Lokhttp3/TlsVersion$Companion;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public final forJavaName(Ljava/lang/String;)Lokhttp3/TlsVersion;
 | |
|     .locals 2
 | |
|     .param p1    # Ljava/lang/String;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation runtime Lkotlin/jvm/JvmStatic;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "javaName"
 | |
| 
 | |
|     invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const v1, 0x4b88569
 | |
| 
 | |
|     if-eq v0, v1, :cond_1
 | |
| 
 | |
|     const v1, 0x4c38896
 | |
| 
 | |
|     if-eq v0, v1, :cond_0
 | |
| 
 | |
|     packed-switch v0, :pswitch_data_0
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :pswitch_0
 | |
|     const-string v0, "TLSv1.3"
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     sget-object p1, Lokhttp3/TlsVersion;->TLS_1_3:Lokhttp3/TlsVersion;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :pswitch_1
 | |
|     const-string v0, "TLSv1.2"
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     sget-object p1, Lokhttp3/TlsVersion;->TLS_1_2:Lokhttp3/TlsVersion;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :pswitch_2
 | |
|     const-string v0, "TLSv1.1"
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     sget-object p1, Lokhttp3/TlsVersion;->TLS_1_1:Lokhttp3/TlsVersion;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const-string v0, "TLSv1"
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     sget-object p1, Lokhttp3/TlsVersion;->TLS_1_0:Lokhttp3/TlsVersion;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     const-string v0, "SSLv3"
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     sget-object p1, Lokhttp3/TlsVersion;->SSL_3_0:Lokhttp3/TlsVersion;
 | |
| 
 | |
|     :goto_0
 | |
|     return-object p1
 | |
| 
 | |
|     .line 7
 | |
|     :cond_2
 | |
|     :goto_1
 | |
|     new-instance v0, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string v1, "Unexpected TLS version: "
 | |
| 
 | |
|     invoke-static {v1, p1}, Lc/g;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw v0
 | |
| 
 | |
|     :pswitch_data_0
 | |
|     .packed-switch -0x1dfc3f27
 | |
|         :pswitch_2
 | |
|         :pswitch_1
 | |
|         :pswitch_0
 | |
|     .end packed-switch
 | |
| .end method
 |