Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for forJavaName (0.05 sec)

  1. okhttp/src/test/java/okhttp3/CipherSuiteTest.kt

    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/Handshake.kt

              }
              else -> CipherSuite.forJavaName(cipherSuiteString)
            }
    
          val tlsVersionString = checkNotNull(protocol) { "tlsVersion == null" }
          if ("NONE" == tlsVersionString) throw IOException("tlsVersion == NONE")
          val tlsVersion = TlsVersion.forJavaName(tlsVersionString)
    
          val peerCertificatesCopy =
            try {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/TlsVersion.kt

        message = "moved to val",
        replaceWith = ReplaceWith(expression = "javaName"),
        level = DeprecationLevel.ERROR,
      )
      fun javaName(): String = javaName
    
      companion object {
        @JvmStatic
        fun forJavaName(javaName: String): TlsVersion {
          return when (javaName) {
            "TLSv1.3" -> TLS_1_3
            "TLSv1.2" -> TLS_1_2
            "TLSv1.1" -> TLS_1_1
            "TLSv1" -> TLS_1_0
            "SSLv3" -> SSL_3_0
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/SessionReuseTest.kt

        if (tlsVersion == TlsVersion.TLS_1_3.javaName) {
          assumeTrue(PlatformVersion.majorVersion != 8)
        }
    
        val sessionIds = mutableListOf<String>()
    
        enableTls()
    
        val tlsVersion = TlsVersion.forJavaName(tlsVersion)
        val spec =
          ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
            .tlsVersions(tlsVersion)
            .build()
    
        var reuseSession = false
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top