Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for javaNames (0.12 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/RetryConnectionTest.kt

          enabledProtocols = javaNames(*tlsVersions)
        }
      }
    
      private fun assertEnabledProtocols(
        socket: SSLSocket,
        vararg required: TlsVersion,
      ) {
        assertThat(socket.enabledProtocols.toList()).containsExactlyInAnyOrder(*javaNames(*required))
      }
    
      private fun javaNames(vararg tlsVersions: TlsVersion) = tlsVersions.map { it.javaName }.toTypedArray()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/CustomCipherSuites.java

              + Arrays.toString(trustManagers));
        }
        return (X509TrustManager) trustManagers[0];
      }
    
      private String[] javaNames(List<CipherSuite> cipherSuites) {
        String[] result = new String[cipherSuites.size()];
        for (int i = 0; i < result.length; i++) {
          result[i] = cipherSuites.get(i).javaName();
        }
        return result;
      }
    
      /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Mar 14 21:57:42 UTC 2019
    - 6.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt

            arrayOf(
              TlsVersion.SSL_3_0.javaName,
              TlsVersion.TLS_1_1.javaName,
              TlsVersion.TLS_1_2.javaName,
              TlsVersion.TLS_1_3.javaName,
            )
        } else {
          sslSocket.enabledProtocols =
            arrayOf(
              TlsVersion.SSL_3_0.javaName,
              TlsVersion.TLS_1_1.javaName,
              TlsVersion.TLS_1_2.javaName,
            )
        }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

          assertThat(cipherSuites).containsExactly(
            TLS_AES_128_GCM_SHA256.javaName,
            TLS_AES_256_GCM_SHA384.javaName,
            TLS_CHACHA20_POLY1305_SHA256.javaName,
            TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256.javaName,
            TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256.javaName,
            TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384.javaName,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  5. samples/tlssurvey/src/main/kotlin/okhttp3/survey/Iana.kt

    }
    
    class IanaSuites(
      val name: String,
      val suites: List<SuiteId>,
    ) {
      fun fromJavaName(javaName: String): SuiteId {
        return suites.firstOrNull {
          it.name == javaName || it.name == "TLS_${javaName.drop(4)}"
        } ?: throw IllegalArgumentException("No such suite: $javaName")
      }
    }
    
    suspend fun fetchIanaSuites(okHttpClient: OkHttpClient): IanaSuites {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 18 01:24:38 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/TlsVersion.kt

      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
            else -> throw IllegalArgumentException("Unexpected TLS version: $javaName")
          }
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. samples/tlssurvey/src/main/kotlin/okhttp3/survey/Clients.kt

        userAgent = "OkHttp",
        version = OkHttp.VERSION,
        enabled =
          ConnectionSpec.MODERN_TLS.cipherSuites!!.map {
            ianaSuites.fromJavaName(it.javaName)
          },
        supported =
          ConnectionSpec.COMPATIBLE_TLS.cipherSuites!!.map {
            ianaSuites.fromJavaName(it.javaName)
          },
      )
    }
    
    fun historicOkHttp(version: String): Client {
      val enabled =
        FileSystem.RESOURCES.read("okhttp_$version.txt".toPath()) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Apr 02 01:44:15 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CipherSuiteTest.kt

      }
    
      @Test
      fun javaName_examples() {
        assertThat(CipherSuite.TLS_RSA_EXPORT_WITH_RC4_40_MD5.javaName)
          .isEqualTo("SSL_RSA_EXPORT_WITH_RC4_40_MD5")
        assertThat(CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA256.javaName)
          .isEqualTo("TLS_RSA_WITH_AES_128_CBC_SHA256")
        assertThat(forJavaName("TestCipherSuite").javaName)
          .isEqualTo("TestCipherSuite")
      }
    
      @Test
      fun javaName_equalsToString() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/CipherSuite.kt

       * `"SSL_RSA_EXPORT_WITH_RC4_40_MD5"`.
       */
      @get:JvmName("javaName") val javaName: String,
    ) {
      @JvmName("-deprecated_javaName")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "javaName"),
        level = DeprecationLevel.ERROR,
      )
      fun javaName(): String = javaName
    
      override fun toString(): String = javaName
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 39.9K bytes
    - Viewed (0)
  10. docs/changelogs/upgrading_to_okhttp_4.md

     * **CacheControl**: immutable, maxAgeSeconds, maxStaleSeconds, minFreshSeconds, mustRevalidate,
       noCache, noStore, noTransform, onlyIfCached, sMaxAgeSeconds
     * **Challenge**: authParams, charset, realm, scheme
     * **CipherSuite**: javaName
     * **ConnectionSpec**: cipherSuites, supportsTlsExtensions, tlsVersions
     * **Cookie**: domain, expiresAt, hostOnly, httpOnly, name, path, persistent, value
     * **Dispatcher**: executorService
     * **FormBody**: size
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
Back to top