Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for connectionSpec (0.1 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

            val tlsEquipPlan = planWithCurrentOrInitialConnectionSpec(connectionSpecs, sslSocket)
            val connectionSpec = connectionSpecs[tlsEquipPlan.connectionSpecIndex]
    
            // Figure out the next connection spec in case we need a retry.
            retryTlsConnection = tlsEquipPlan.nextConnectionSpec(connectionSpecs, sslSocket)
    
            connectionSpec.apply(sslSocket, isFallback = tlsEquipPlan.isTlsFallback)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. android-test/src/androidTest/java/okhttp/android/test/alpn/AlpnOverrideTest.kt

        client =
          client
            .newBuilder()
            .sslSocketFactory(CustomSSLSocketFactory(client.sslSocketFactory), client.x509TrustManager!!)
            .connectionSpecs(
              listOf(
                ConnectionSpec
                  .Builder(ConnectionSpec.MODERN_TLS)
                  .supportsTlsExtensions(false)
                  .build(),
              ),
            ).eventListener(
              object : EventListener() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

      }
    
      @Test
      fun connectionSpec() {
        var connectionSpec: ConnectionSpec = ConnectionSpec.RESTRICTED_TLS
        connectionSpec = ConnectionSpec.MODERN_TLS
        connectionSpec = ConnectionSpec.COMPATIBLE_TLS
        connectionSpec = ConnectionSpec.CLEARTEXT
        val tlsVersions: List<TlsVersion>? = connectionSpec.tlsVersions
        val cipherSuites: List<CipherSuite>? = connectionSpec.cipherSuites
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

              }
        }
      }
    }
    
    @SuppressSignatureCheck
    class WiresharkExample(
      tlsVersions: List<TlsVersion>,
      private val launch: Launch? = null,
    ) {
      private val connectionSpec =
        ConnectionSpec
          .Builder(ConnectionSpec.RESTRICTED_TLS)
          .tlsVersions(*tlsVersions.toTypedArray())
          .build()
    
      private val eventListenerFactory =
        WireSharkListenerFactory(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/CallHandshakeTest.kt

        this.client
          .newBuilder()
          .apply {
            if (connectionSpec != null) {
              connectionSpecs(
                listOf(
                  ConnectionSpec
                    .Builder(connectionSpec)
                    .apply {
                      if (tlsVersion != null) {
                        tlsVersions(tlsVersion)
                      }
                      if (cipherSuites != null) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CipherSuiteTest.kt

        socket.enabledCipherSuites = arrayOf("SSL_A", "SSL_B", "SSL_C")
        val connectionSpec =
          ConnectionSpec
            .Builder(true)
            .tlsVersions(TlsVersion.TLS_1_0)
            .cipherSuites("TLS_A", "TLS_C", "TLS_E")
            .build()
        applyConnectionSpec(connectionSpec, socket, false)
        assertArrayEquals(arrayOf("TLS_A", "TLS_C"), socket.enabledCipherSuites)
      }
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionSpecTest.kt

        val allCipherSuites =
          ConnectionSpec
            .Builder(ConnectionSpec.MODERN_TLS)
            .allEnabledCipherSuites()
            .build()
        val allTlsVersions =
          ConnectionSpec
            .Builder(ConnectionSpec.MODERN_TLS)
            .allEnabledTlsVersions()
            .build()
        val set: MutableSet<Any> = CopyOnWriteArraySet()
        assertThat(set.add(ConnectionSpec.MODERN_TLS)).isTrue()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt

        }
    
        val sessionIds = mutableListOf<String>()
    
        enableTls()
    
        val tlsVersion = TlsVersion.forJavaName(tlsVersion)
        val spec =
          ConnectionSpec
            .Builder(ConnectionSpec.MODERN_TLS)
            .tlsVersions(tlsVersion)
            .build()
    
        var reuseSession = false
    
        val sslContext = handshakeCertificates.sslContext()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. okhttp/api/jvm/okhttp.api

    }
    
    public final class okhttp3/ConnectionSpec {
    	public static final field CLEARTEXT Lokhttp3/ConnectionSpec;
    	public static final field COMPATIBLE_TLS Lokhttp3/ConnectionSpec;
    	public static final field Companion Lokhttp3/ConnectionSpec$Companion;
    	public static final field MODERN_TLS Lokhttp3/ConnectionSpec;
    	public static final field RESTRICTED_TLS Lokhttp3/ConnectionSpec;
    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/jvmTest/kotlin/okhttp3/TestTls13Request.kt

     * available in JDK11 or Conscrypt.
     */
    private val TLS_13 =
      ConnectionSpec
        .Builder(true)
        .cipherSuites(*TLS13_CIPHER_SUITES.toTypedArray())
        .tlsVersions(TlsVersion.TLS_1_3)
        .build()
    
    private val TLS_12 =
      ConnectionSpec
        .Builder(ConnectionSpec.RESTRICTED_TLS)
        .tlsVersions(TlsVersion.TLS_1_2)
        .build()
    
    private fun testClient(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 22 14:39:30 UTC 2025
    - 3.6K bytes
    - Viewed (0)
Back to top