ConnectionSpec.smali 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. .class public final Lokhttp3/ConnectionSpec;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/MemberClasses;
  6. value = {
  7. Lokhttp3/ConnectionSpec$Builder;
  8. }
  9. .end annotation
  10. # static fields
  11. .field private static final APPROVED_CIPHER_SUITES:[Lokhttp3/CipherSuite;
  12. .field public static final CLEARTEXT:Lokhttp3/ConnectionSpec;
  13. .field public static final COMPATIBLE_TLS:Lokhttp3/ConnectionSpec;
  14. .field public static final MODERN_TLS:Lokhttp3/ConnectionSpec;
  15. # instance fields
  16. .field final cipherSuites:[Ljava/lang/String;
  17. .field final supportsTlsExtensions:Z
  18. .field final tls:Z
  19. .field final tlsVersions:[Ljava/lang/String;
  20. # direct methods
  21. .method static constructor <clinit>()V
  22. .locals 8
  23. const/16 v0, 0xf
  24. new-array v0, v0, [Lokhttp3/CipherSuite;
  25. sget-object v1, Lokhttp3/CipherSuite;->TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256:Lokhttp3/CipherSuite;
  26. const/4 v2, 0x0
  27. aput-object v1, v0, v2
  28. sget-object v1, Lokhttp3/CipherSuite;->TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256:Lokhttp3/CipherSuite;
  29. const/4 v3, 0x1
  30. aput-object v1, v0, v3
  31. sget-object v1, Lokhttp3/CipherSuite;->TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384:Lokhttp3/CipherSuite;
  32. const/4 v4, 0x2
  33. aput-object v1, v0, v4
  34. sget-object v1, Lokhttp3/CipherSuite;->TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384:Lokhttp3/CipherSuite;
  35. const/4 v5, 0x3
  36. aput-object v1, v0, v5
  37. sget-object v1, Lokhttp3/CipherSuite;->TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256:Lokhttp3/CipherSuite;
  38. const/4 v6, 0x4
  39. aput-object v1, v0, v6
  40. sget-object v1, Lokhttp3/CipherSuite;->TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256:Lokhttp3/CipherSuite;
  41. const/4 v7, 0x5
  42. aput-object v1, v0, v7
  43. sget-object v1, Lokhttp3/CipherSuite;->TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA:Lokhttp3/CipherSuite;
  44. const/4 v7, 0x6
  45. aput-object v1, v0, v7
  46. sget-object v1, Lokhttp3/CipherSuite;->TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA:Lokhttp3/CipherSuite;
  47. const/4 v7, 0x7
  48. aput-object v1, v0, v7
  49. sget-object v1, Lokhttp3/CipherSuite;->TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA:Lokhttp3/CipherSuite;
  50. const/16 v7, 0x8
  51. aput-object v1, v0, v7
  52. sget-object v1, Lokhttp3/CipherSuite;->TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA:Lokhttp3/CipherSuite;
  53. const/16 v7, 0x9
  54. aput-object v1, v0, v7
  55. sget-object v1, Lokhttp3/CipherSuite;->TLS_RSA_WITH_AES_128_GCM_SHA256:Lokhttp3/CipherSuite;
  56. const/16 v7, 0xa
  57. aput-object v1, v0, v7
  58. sget-object v1, Lokhttp3/CipherSuite;->TLS_RSA_WITH_AES_256_GCM_SHA384:Lokhttp3/CipherSuite;
  59. const/16 v7, 0xb
  60. aput-object v1, v0, v7
  61. sget-object v1, Lokhttp3/CipherSuite;->TLS_RSA_WITH_AES_128_CBC_SHA:Lokhttp3/CipherSuite;
  62. const/16 v7, 0xc
  63. aput-object v1, v0, v7
  64. sget-object v1, Lokhttp3/CipherSuite;->TLS_RSA_WITH_AES_256_CBC_SHA:Lokhttp3/CipherSuite;
  65. const/16 v7, 0xd
  66. aput-object v1, v0, v7
  67. sget-object v1, Lokhttp3/CipherSuite;->TLS_RSA_WITH_3DES_EDE_CBC_SHA:Lokhttp3/CipherSuite;
  68. const/16 v7, 0xe
  69. aput-object v1, v0, v7
  70. sput-object v0, Lokhttp3/ConnectionSpec;->APPROVED_CIPHER_SUITES:[Lokhttp3/CipherSuite;
  71. new-instance v0, Lokhttp3/ConnectionSpec$Builder;
  72. invoke-direct {v0, v3}, Lokhttp3/ConnectionSpec$Builder;-><init>(Z)V
  73. sget-object v1, Lokhttp3/ConnectionSpec;->APPROVED_CIPHER_SUITES:[Lokhttp3/CipherSuite;
  74. invoke-virtual {v0, v1}, Lokhttp3/ConnectionSpec$Builder;->cipherSuites([Lokhttp3/CipherSuite;)Lokhttp3/ConnectionSpec$Builder;
  75. move-result-object v0
  76. new-array v1, v6, [Lokhttp3/TlsVersion;
  77. sget-object v6, Lokhttp3/TlsVersion;->TLS_1_3:Lokhttp3/TlsVersion;
  78. aput-object v6, v1, v2
  79. sget-object v6, Lokhttp3/TlsVersion;->TLS_1_2:Lokhttp3/TlsVersion;
  80. aput-object v6, v1, v3
  81. sget-object v6, Lokhttp3/TlsVersion;->TLS_1_1:Lokhttp3/TlsVersion;
  82. aput-object v6, v1, v4
  83. sget-object v4, Lokhttp3/TlsVersion;->TLS_1_0:Lokhttp3/TlsVersion;
  84. aput-object v4, v1, v5
  85. invoke-virtual {v0, v1}, Lokhttp3/ConnectionSpec$Builder;->tlsVersions([Lokhttp3/TlsVersion;)Lokhttp3/ConnectionSpec$Builder;
  86. move-result-object v0
  87. invoke-virtual {v0, v3}, Lokhttp3/ConnectionSpec$Builder;->supportsTlsExtensions(Z)Lokhttp3/ConnectionSpec$Builder;
  88. move-result-object v0
  89. invoke-virtual {v0}, Lokhttp3/ConnectionSpec$Builder;->build()Lokhttp3/ConnectionSpec;
  90. move-result-object v0
  91. sput-object v0, Lokhttp3/ConnectionSpec;->MODERN_TLS:Lokhttp3/ConnectionSpec;
  92. new-instance v0, Lokhttp3/ConnectionSpec$Builder;
  93. sget-object v1, Lokhttp3/ConnectionSpec;->MODERN_TLS:Lokhttp3/ConnectionSpec;
  94. invoke-direct {v0, v1}, Lokhttp3/ConnectionSpec$Builder;-><init>(Lokhttp3/ConnectionSpec;)V
  95. new-array v1, v3, [Lokhttp3/TlsVersion;
  96. sget-object v4, Lokhttp3/TlsVersion;->TLS_1_0:Lokhttp3/TlsVersion;
  97. aput-object v4, v1, v2
  98. invoke-virtual {v0, v1}, Lokhttp3/ConnectionSpec$Builder;->tlsVersions([Lokhttp3/TlsVersion;)Lokhttp3/ConnectionSpec$Builder;
  99. move-result-object v0
  100. invoke-virtual {v0, v3}, Lokhttp3/ConnectionSpec$Builder;->supportsTlsExtensions(Z)Lokhttp3/ConnectionSpec$Builder;
  101. move-result-object v0
  102. invoke-virtual {v0}, Lokhttp3/ConnectionSpec$Builder;->build()Lokhttp3/ConnectionSpec;
  103. move-result-object v0
  104. sput-object v0, Lokhttp3/ConnectionSpec;->COMPATIBLE_TLS:Lokhttp3/ConnectionSpec;
  105. new-instance v0, Lokhttp3/ConnectionSpec$Builder;
  106. invoke-direct {v0, v2}, Lokhttp3/ConnectionSpec$Builder;-><init>(Z)V
  107. invoke-virtual {v0}, Lokhttp3/ConnectionSpec$Builder;->build()Lokhttp3/ConnectionSpec;
  108. move-result-object v0
  109. sput-object v0, Lokhttp3/ConnectionSpec;->CLEARTEXT:Lokhttp3/ConnectionSpec;
  110. return-void
  111. .end method
  112. .method constructor <init>(Lokhttp3/ConnectionSpec$Builder;)V
  113. .locals 1
  114. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  115. iget-boolean v0, p1, Lokhttp3/ConnectionSpec$Builder;->tls:Z
  116. iput-boolean v0, p0, Lokhttp3/ConnectionSpec;->tls:Z
  117. iget-object v0, p1, Lokhttp3/ConnectionSpec$Builder;->cipherSuites:[Ljava/lang/String;
  118. iput-object v0, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
  119. iget-object v0, p1, Lokhttp3/ConnectionSpec$Builder;->tlsVersions:[Ljava/lang/String;
  120. iput-object v0, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
  121. iget-boolean p1, p1, Lokhttp3/ConnectionSpec$Builder;->supportsTlsExtensions:Z
  122. iput-boolean p1, p0, Lokhttp3/ConnectionSpec;->supportsTlsExtensions:Z
  123. return-void
  124. .end method
  125. .method private supportedSpec(Ljavax/net/ssl/SSLSocket;Z)Lokhttp3/ConnectionSpec;
  126. .locals 4
  127. iget-object v0, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
  128. if-eqz v0, :cond_0
  129. sget-object v0, Lokhttp3/CipherSuite;->ORDER_BY_NAME:Ljava/util/Comparator;
  130. invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
  131. move-result-object v1
  132. iget-object v2, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
  133. invoke-static {v0, v1, v2}, Lokhttp3/internal/Util;->intersect(Ljava/util/Comparator;[Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
  134. move-result-object v0
  135. goto :goto_0
  136. :cond_0
  137. invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
  138. move-result-object v0
  139. :goto_0
  140. iget-object v1, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
  141. if-eqz v1, :cond_1
  142. sget-object v1, Lokhttp3/internal/Util;->NATURAL_ORDER:Ljava/util/Comparator;
  143. invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
  144. move-result-object v2
  145. iget-object v3, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
  146. invoke-static {v1, v2, v3}, Lokhttp3/internal/Util;->intersect(Ljava/util/Comparator;[Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
  147. move-result-object v1
  148. goto :goto_1
  149. :cond_1
  150. invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
  151. move-result-object v1
  152. :goto_1
  153. invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getSupportedCipherSuites()[Ljava/lang/String;
  154. move-result-object p1
  155. sget-object v2, Lokhttp3/CipherSuite;->ORDER_BY_NAME:Ljava/util/Comparator;
  156. const-string v3, "TLS_FALLBACK_SCSV"
  157. invoke-static {v2, p1, v3}, Lokhttp3/internal/Util;->indexOf(Ljava/util/Comparator;[Ljava/lang/String;Ljava/lang/String;)I
  158. move-result v2
  159. if-eqz p2, :cond_2
  160. const/4 p2, -0x1
  161. if-eq v2, p2, :cond_2
  162. aget-object p1, p1, v2
  163. invoke-static {v0, p1}, Lokhttp3/internal/Util;->concat([Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
  164. move-result-object v0
  165. :cond_2
  166. new-instance p1, Lokhttp3/ConnectionSpec$Builder;
  167. invoke-direct {p1, p0}, Lokhttp3/ConnectionSpec$Builder;-><init>(Lokhttp3/ConnectionSpec;)V
  168. invoke-virtual {p1, v0}, Lokhttp3/ConnectionSpec$Builder;->cipherSuites([Ljava/lang/String;)Lokhttp3/ConnectionSpec$Builder;
  169. move-result-object p1
  170. invoke-virtual {p1, v1}, Lokhttp3/ConnectionSpec$Builder;->tlsVersions([Ljava/lang/String;)Lokhttp3/ConnectionSpec$Builder;
  171. move-result-object p1
  172. invoke-virtual {p1}, Lokhttp3/ConnectionSpec$Builder;->build()Lokhttp3/ConnectionSpec;
  173. move-result-object p1
  174. return-object p1
  175. .end method
  176. # virtual methods
  177. .method apply(Ljavax/net/ssl/SSLSocket;Z)V
  178. .locals 1
  179. invoke-direct {p0, p1, p2}, Lokhttp3/ConnectionSpec;->supportedSpec(Ljavax/net/ssl/SSLSocket;Z)Lokhttp3/ConnectionSpec;
  180. move-result-object p2
  181. iget-object v0, p2, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
  182. if-eqz v0, :cond_0
  183. invoke-virtual {p1, v0}, Ljavax/net/ssl/SSLSocket;->setEnabledProtocols([Ljava/lang/String;)V
  184. :cond_0
  185. iget-object p2, p2, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
  186. if-eqz p2, :cond_1
  187. invoke-virtual {p1, p2}, Ljavax/net/ssl/SSLSocket;->setEnabledCipherSuites([Ljava/lang/String;)V
  188. :cond_1
  189. return-void
  190. .end method
  191. .method public cipherSuites()Ljava/util/List;
  192. .locals 1
  193. .annotation system Ldalvik/annotation/Signature;
  194. value = {
  195. "()",
  196. "Ljava/util/List<",
  197. "Lokhttp3/CipherSuite;",
  198. ">;"
  199. }
  200. .end annotation
  201. iget-object v0, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
  202. if-eqz v0, :cond_0
  203. invoke-static {v0}, Lokhttp3/CipherSuite;->forJavaNames([Ljava/lang/String;)Ljava/util/List;
  204. move-result-object v0
  205. goto :goto_0
  206. :cond_0
  207. const/4 v0, 0x0
  208. :goto_0
  209. return-object v0
  210. .end method
  211. .method public equals(Ljava/lang/Object;)Z
  212. .locals 4
  213. instance-of v0, p1, Lokhttp3/ConnectionSpec;
  214. const/4 v1, 0x0
  215. if-nez v0, :cond_0
  216. return v1
  217. :cond_0
  218. const/4 v0, 0x1
  219. if-ne p1, p0, :cond_1
  220. return v0
  221. :cond_1
  222. check-cast p1, Lokhttp3/ConnectionSpec;
  223. iget-boolean v2, p0, Lokhttp3/ConnectionSpec;->tls:Z
  224. iget-boolean v3, p1, Lokhttp3/ConnectionSpec;->tls:Z
  225. if-eq v2, v3, :cond_2
  226. return v1
  227. :cond_2
  228. if-eqz v2, :cond_5
  229. iget-object v2, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
  230. iget-object v3, p1, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
  231. invoke-static {v2, v3}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
  232. move-result v2
  233. if-nez v2, :cond_3
  234. return v1
  235. :cond_3
  236. iget-object v2, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
  237. iget-object v3, p1, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
  238. invoke-static {v2, v3}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
  239. move-result v2
  240. if-nez v2, :cond_4
  241. return v1
  242. :cond_4
  243. iget-boolean v2, p0, Lokhttp3/ConnectionSpec;->supportsTlsExtensions:Z
  244. iget-boolean p1, p1, Lokhttp3/ConnectionSpec;->supportsTlsExtensions:Z
  245. if-eq v2, p1, :cond_5
  246. return v1
  247. :cond_5
  248. return v0
  249. .end method
  250. .method public hashCode()I
  251. .locals 2
  252. iget-boolean v0, p0, Lokhttp3/ConnectionSpec;->tls:Z
  253. if-eqz v0, :cond_0
  254. const/16 v0, 0x20f
  255. iget-object v1, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
  256. invoke-static {v1}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
  257. move-result v1
  258. add-int/2addr v0, v1
  259. mul-int/lit8 v0, v0, 0x1f
  260. iget-object v1, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
  261. invoke-static {v1}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
  262. move-result v1
  263. add-int/2addr v0, v1
  264. mul-int/lit8 v0, v0, 0x1f
  265. iget-boolean v1, p0, Lokhttp3/ConnectionSpec;->supportsTlsExtensions:Z
  266. xor-int/lit8 v1, v1, 0x1
  267. add-int/2addr v0, v1
  268. goto :goto_0
  269. :cond_0
  270. const/16 v0, 0x11
  271. :goto_0
  272. return v0
  273. .end method
  274. .method public isCompatible(Ljavax/net/ssl/SSLSocket;)Z
  275. .locals 4
  276. iget-boolean v0, p0, Lokhttp3/ConnectionSpec;->tls:Z
  277. const/4 v1, 0x0
  278. if-nez v0, :cond_0
  279. return v1
  280. :cond_0
  281. iget-object v0, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
  282. if-eqz v0, :cond_1
  283. sget-object v2, Lokhttp3/internal/Util;->NATURAL_ORDER:Ljava/util/Comparator;
  284. invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
  285. move-result-object v3
  286. invoke-static {v2, v0, v3}, Lokhttp3/internal/Util;->nonEmptyIntersection(Ljava/util/Comparator;[Ljava/lang/String;[Ljava/lang/String;)Z
  287. move-result v0
  288. if-nez v0, :cond_1
  289. return v1
  290. :cond_1
  291. iget-object v0, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
  292. if-eqz v0, :cond_2
  293. sget-object v2, Lokhttp3/CipherSuite;->ORDER_BY_NAME:Ljava/util/Comparator;
  294. invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
  295. move-result-object p1
  296. invoke-static {v2, v0, p1}, Lokhttp3/internal/Util;->nonEmptyIntersection(Ljava/util/Comparator;[Ljava/lang/String;[Ljava/lang/String;)Z
  297. move-result p1
  298. if-nez p1, :cond_2
  299. return v1
  300. :cond_2
  301. const/4 p1, 0x1
  302. return p1
  303. .end method
  304. .method public isTls()Z
  305. .locals 1
  306. iget-boolean v0, p0, Lokhttp3/ConnectionSpec;->tls:Z
  307. return v0
  308. .end method
  309. .method public supportsTlsExtensions()Z
  310. .locals 1
  311. iget-boolean v0, p0, Lokhttp3/ConnectionSpec;->supportsTlsExtensions:Z
  312. return v0
  313. .end method
  314. .method public tlsVersions()Ljava/util/List;
  315. .locals 1
  316. .annotation system Ldalvik/annotation/Signature;
  317. value = {
  318. "()",
  319. "Ljava/util/List<",
  320. "Lokhttp3/TlsVersion;",
  321. ">;"
  322. }
  323. .end annotation
  324. iget-object v0, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
  325. if-eqz v0, :cond_0
  326. invoke-static {v0}, Lokhttp3/TlsVersion;->forJavaNames([Ljava/lang/String;)Ljava/util/List;
  327. move-result-object v0
  328. goto :goto_0
  329. :cond_0
  330. const/4 v0, 0x0
  331. :goto_0
  332. return-object v0
  333. .end method
  334. .method public toString()Ljava/lang/String;
  335. .locals 4
  336. iget-boolean v0, p0, Lokhttp3/ConnectionSpec;->tls:Z
  337. if-nez v0, :cond_0
  338. const-string v0, "ConnectionSpec()"
  339. return-object v0
  340. :cond_0
  341. iget-object v0, p0, Lokhttp3/ConnectionSpec;->cipherSuites:[Ljava/lang/String;
  342. const-string v1, "[all enabled]"
  343. if-eqz v0, :cond_1
  344. invoke-virtual {p0}, Lokhttp3/ConnectionSpec;->cipherSuites()Ljava/util/List;
  345. move-result-object v0
  346. invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
  347. move-result-object v0
  348. goto :goto_0
  349. :cond_1
  350. move-object v0, v1
  351. :goto_0
  352. iget-object v2, p0, Lokhttp3/ConnectionSpec;->tlsVersions:[Ljava/lang/String;
  353. if-eqz v2, :cond_2
  354. invoke-virtual {p0}, Lokhttp3/ConnectionSpec;->tlsVersions()Ljava/util/List;
  355. move-result-object v1
  356. invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
  357. move-result-object v1
  358. :cond_2
  359. new-instance v2, Ljava/lang/StringBuilder;
  360. invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
  361. const-string v3, "ConnectionSpec(cipherSuites="
  362. invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  363. invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  364. const-string v0, ", tlsVersions="
  365. invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  366. invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  367. const-string v0, ", supportsTlsExtensions="
  368. invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  369. iget-boolean v0, p0, Lokhttp3/ConnectionSpec;->supportsTlsExtensions:Z
  370. invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
  371. const-string v0, ")"
  372. invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  373. invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  374. move-result-object v0
  375. return-object v0
  376. .end method