123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388 |
- .class public final enum Lokhttp3/TlsVersion;
- .super Ljava/lang/Enum;
- .source ""
- # annotations
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Ljava/lang/Enum<",
- "Lokhttp3/TlsVersion;",
- ">;"
- }
- .end annotation
- # static fields
- .field private static final synthetic $VALUES:[Lokhttp3/TlsVersion;
- .field public static final enum SSL_3_0:Lokhttp3/TlsVersion;
- .field public static final enum TLS_1_0:Lokhttp3/TlsVersion;
- .field public static final enum TLS_1_1:Lokhttp3/TlsVersion;
- .field public static final enum TLS_1_2:Lokhttp3/TlsVersion;
- .field public static final enum TLS_1_3:Lokhttp3/TlsVersion;
- # instance fields
- .field final javaName:Ljava/lang/String;
- # direct methods
- .method static constructor <clinit>()V
- .locals 8
- new-instance v0, Lokhttp3/TlsVersion;
- const/4 v1, 0x0
- const-string v2, "TLS_1_3"
- const-string v3, "TLSv1.3"
- invoke-direct {v0, v2, v1, v3}, Lokhttp3/TlsVersion;-><init>(Ljava/lang/String;ILjava/lang/String;)V
- sput-object v0, Lokhttp3/TlsVersion;->TLS_1_3:Lokhttp3/TlsVersion;
- new-instance v0, Lokhttp3/TlsVersion;
- const/4 v2, 0x1
- const-string v3, "TLS_1_2"
- const-string v4, "TLSv1.2"
- invoke-direct {v0, v3, v2, v4}, Lokhttp3/TlsVersion;-><init>(Ljava/lang/String;ILjava/lang/String;)V
- sput-object v0, Lokhttp3/TlsVersion;->TLS_1_2:Lokhttp3/TlsVersion;
- new-instance v0, Lokhttp3/TlsVersion;
- const/4 v3, 0x2
- const-string v4, "TLS_1_1"
- const-string v5, "TLSv1.1"
- invoke-direct {v0, v4, v3, v5}, Lokhttp3/TlsVersion;-><init>(Ljava/lang/String;ILjava/lang/String;)V
- sput-object v0, Lokhttp3/TlsVersion;->TLS_1_1:Lokhttp3/TlsVersion;
- new-instance v0, Lokhttp3/TlsVersion;
- const/4 v4, 0x3
- const-string v5, "TLS_1_0"
- const-string v6, "TLSv1"
- invoke-direct {v0, v5, v4, v6}, Lokhttp3/TlsVersion;-><init>(Ljava/lang/String;ILjava/lang/String;)V
- sput-object v0, Lokhttp3/TlsVersion;->TLS_1_0:Lokhttp3/TlsVersion;
- new-instance v0, Lokhttp3/TlsVersion;
- const/4 v5, 0x4
- const-string v6, "SSL_3_0"
- const-string v7, "SSLv3"
- invoke-direct {v0, v6, v5, v7}, Lokhttp3/TlsVersion;-><init>(Ljava/lang/String;ILjava/lang/String;)V
- sput-object v0, Lokhttp3/TlsVersion;->SSL_3_0:Lokhttp3/TlsVersion;
- const/4 v0, 0x5
- new-array v0, v0, [Lokhttp3/TlsVersion;
- sget-object v6, Lokhttp3/TlsVersion;->TLS_1_3:Lokhttp3/TlsVersion;
- aput-object v6, v0, v1
- sget-object v1, Lokhttp3/TlsVersion;->TLS_1_2:Lokhttp3/TlsVersion;
- aput-object v1, v0, v2
- sget-object v1, Lokhttp3/TlsVersion;->TLS_1_1:Lokhttp3/TlsVersion;
- aput-object v1, v0, v3
- sget-object v1, Lokhttp3/TlsVersion;->TLS_1_0:Lokhttp3/TlsVersion;
- aput-object v1, v0, v4
- sget-object v1, Lokhttp3/TlsVersion;->SSL_3_0:Lokhttp3/TlsVersion;
- aput-object v1, v0, v5
- sput-object v0, Lokhttp3/TlsVersion;->$VALUES:[Lokhttp3/TlsVersion;
- return-void
- .end method
- .method private constructor <init>(Ljava/lang/String;ILjava/lang/String;)V
- .locals 0
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Ljava/lang/String;",
- ")V"
- }
- .end annotation
- invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
- iput-object p3, p0, Lokhttp3/TlsVersion;->javaName:Ljava/lang/String;
- return-void
- .end method
- .method public static forJavaName(Ljava/lang/String;)Lokhttp3/TlsVersion;
- .locals 6
- invoke-virtual {p0}, Ljava/lang/String;->hashCode()I
- move-result v0
- const v1, 0x4b88569
- const/4 v2, 0x4
- const/4 v3, 0x3
- const/4 v4, 0x2
- const/4 v5, 0x1
- if-eq v0, v1, :cond_1
- const v1, 0x4c38896
- if-eq v0, v1, :cond_0
- packed-switch v0, :pswitch_data_0
- goto :goto_0
- :pswitch_0
- const-string v0, "TLSv1.3"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_2
- const/4 v0, 0x0
- goto :goto_1
- :pswitch_1
- const-string v0, "TLSv1.2"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_2
- const/4 v0, 0x1
- goto :goto_1
- :pswitch_2
- const-string v0, "TLSv1.1"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_2
- const/4 v0, 0x2
- goto :goto_1
- :cond_0
- const-string v0, "TLSv1"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_2
- const/4 v0, 0x3
- goto :goto_1
- :cond_1
- const-string v0, "SSLv3"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_2
- const/4 v0, 0x4
- goto :goto_1
- :cond_2
- :goto_0
- const/4 v0, -0x1
- :goto_1
- if-eqz v0, :cond_7
- if-eq v0, v5, :cond_6
- if-eq v0, v4, :cond_5
- if-eq v0, v3, :cond_4
- if-ne v0, v2, :cond_3
- sget-object p0, Lokhttp3/TlsVersion;->SSL_3_0:Lokhttp3/TlsVersion;
- return-object p0
- :cond_3
- new-instance v0, Ljava/lang/IllegalArgumentException;
- new-instance v1, Ljava/lang/StringBuilder;
- invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
- const-string v2, "Unexpected TLS version: "
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
- move-result-object p0
- invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
- throw v0
- :cond_4
- sget-object p0, Lokhttp3/TlsVersion;->TLS_1_0:Lokhttp3/TlsVersion;
- return-object p0
- :cond_5
- sget-object p0, Lokhttp3/TlsVersion;->TLS_1_1:Lokhttp3/TlsVersion;
- return-object p0
- :cond_6
- sget-object p0, Lokhttp3/TlsVersion;->TLS_1_2:Lokhttp3/TlsVersion;
- return-object p0
- :cond_7
- sget-object p0, Lokhttp3/TlsVersion;->TLS_1_3:Lokhttp3/TlsVersion;
- return-object p0
- nop
- :pswitch_data_0
- .packed-switch -0x1dfc3f27
- :pswitch_2
- :pswitch_1
- :pswitch_0
- .end packed-switch
- .end method
- .method static varargs forJavaNames([Ljava/lang/String;)Ljava/util/List;
- .locals 4
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "([",
- "Ljava/lang/String;",
- ")",
- "Ljava/util/List<",
- "Lokhttp3/TlsVersion;",
- ">;"
- }
- .end annotation
- new-instance v0, Ljava/util/ArrayList;
- array-length v1, p0
- invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
- array-length v1, p0
- const/4 v2, 0x0
- :goto_0
- if-ge v2, v1, :cond_0
- aget-object v3, p0, v2
- invoke-static {v3}, Lokhttp3/TlsVersion;->forJavaName(Ljava/lang/String;)Lokhttp3/TlsVersion;
- move-result-object v3
- invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- add-int/lit8 v2, v2, 0x1
- goto :goto_0
- :cond_0
- invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
- move-result-object p0
- return-object p0
- .end method
- .method public static valueOf(Ljava/lang/String;)Lokhttp3/TlsVersion;
- .locals 1
- const-class v0, Lokhttp3/TlsVersion;
- invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
- move-result-object p0
- check-cast p0, Lokhttp3/TlsVersion;
- return-object p0
- .end method
- .method public static values()[Lokhttp3/TlsVersion;
- .locals 1
- sget-object v0, Lokhttp3/TlsVersion;->$VALUES:[Lokhttp3/TlsVersion;
- invoke-virtual {v0}, [Lokhttp3/TlsVersion;->clone()Ljava/lang/Object;
- move-result-object v0
- check-cast v0, [Lokhttp3/TlsVersion;
- return-object v0
- .end method
- # virtual methods
- .method public javaName()Ljava/lang/String;
- .locals 1
- iget-object v0, p0, Lokhttp3/TlsVersion;->javaName:Ljava/lang/String;
- return-object v0
- .end method
|