Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for forJavaName (0.66 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CipherSuiteTest.kt

    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/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 =
          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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Apr 05 09:48:10 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionSpec.kt

       * enabled cipher suites should be used.
       */
      @get:JvmName("cipherSuites")
      val cipherSuites: List<CipherSuite>?
        get() {
          return cipherSuitesAsString?.map { CipherSuite.forJavaName(it) }
        }
    
      @JvmName("-deprecated_cipherSuites")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "cipherSuites"),
        level = DeprecationLevel.ERROR,
      )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

              val cipherSuiteString = source.readUtf8LineStrict()
              val cipherSuite = CipherSuite.forJavaName(cipherSuiteString)
              val peerCertificates = readCertificateList(source)
              val localCertificates = readCertificateList(source)
              val tlsVersion =
                if (!source.exhausted()) {
                  TlsVersion.forJavaName(source.readUtf8LineStrict())
                } else {
                  TlsVersion.SSL_3_0
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  7. okhttp/api/jvm/okhttp.api

    	public static final fun forJavaName (Ljava/lang/String;)Lokhttp3/CipherSuite;
    	public final fun javaName ()Ljava/lang/String;
    	public fun toString ()Ljava/lang/String;
    }
    
    public final class okhttp3/CipherSuite$Companion {
    	public final fun forJavaName (Ljava/lang/String;)Lokhttp3/CipherSuite;
    }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

      }
    
      @Test
      fun cipherSuite() {
        var cipherSuite: CipherSuite = CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
        cipherSuite = CipherSuite.forJavaName("")
        val javaName: String = cipherSuite.javaName
      }
    
      @Test
      fun connection() {
        val connection =
          object : Connection {
            override fun route(): Route = TODO()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  9. okhttp/api/android/okhttp.api

    	public static final fun forJavaName (Ljava/lang/String;)Lokhttp3/CipherSuite;
    	public final fun javaName ()Ljava/lang/String;
    	public fun toString ()Ljava/lang/String;
    }
    
    public final class okhttp3/CipherSuite$Companion {
    	public final fun forJavaName (Ljava/lang/String;)Lokhttp3/CipherSuite;
    }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CipherSuite.kt

         *     name for older cipher suites because the prefix is `SSL_` instead of `TLS_`.
         */
        @JvmStatic
        @Synchronized fun forJavaName(javaName: String): CipherSuite {
          var result: CipherSuite? = INSTANCES[javaName]
          if (result == null) {
            result = INSTANCES[secondaryName(javaName)]
    
            if (result == null) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 39.9K bytes
    - Viewed (0)
Back to top