Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for connectionSpec (0.09 sec)

  1. okhttp/src/main/kotlin/okhttp3/ConnectionSpec.kt

        internal constructor(tls: Boolean) {
          this.tls = tls
        }
    
        constructor(connectionSpec: ConnectionSpec) {
          this.tls = connectionSpec.isTls
          this.cipherSuites = connectionSpec.cipherSuitesAsString
          this.tlsVersions = connectionSpec.tlsVersionsAsString
          this.supportsTlsExtensions = connectionSpec.supportsTlsExtensions
        }
    
        fun allEnabledCipherSuites() =
          apply {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

          .apply {
            if (connectionSpec != null) {
              connectionSpecs(
                listOf(
                  ConnectionSpec.Builder(connectionSpec)
                    .apply {
                      if (tlsVersion != null) {
                        tlsVersions(tlsVersion)
                      }
                      if (cipherSuites != null) {
                        cipherSuites(*cipherSuites.toTypedArray())
                      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. okhttp/src/main/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

      }
    
      @Test @Disabled
      fun connectionSpec() {
        val connectionSpec: ConnectionSpec = ConnectionSpec.RESTRICTED_TLS
        val tlsVersions: List<TlsVersion>? = connectionSpec.tlsVersions()
        val cipherSuites: List<CipherSuite>? = connectionSpec.cipherSuites()
        val supportsTlsExtensions: Boolean = connectionSpec.supportsTlsExtensions()
      }
    
      @Test @Disabled
      fun cookie() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. 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(
          logFile = File("/tmp/key.log"),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. docs/features/https.md

    By default, OkHttp will attempt a `MODERN_TLS` connection.  However by configuring the client connectionSpecs you can allow a fall back to `COMPATIBLE_TLS` connection if the modern configuration fails.
    
    ```java
    OkHttpClient client = new OkHttpClient.Builder()
        .connectionSpecs(Arrays.asList(ConnectionSpec.MODERN_TLS, ConnectionSpec.COMPATIBLE_TLS))
        .build();
    ```
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Dec 24 00:16:30 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_2x.md

        `ConnectionSpec` class.
    
        To disable TLS fallback:
    
        ```java
        client.setConnectionSpecs(Arrays.asList(
            ConnectionSpec.MODERN_TLS, ConnectionSpec.CLEARTEXT));
        ```
    
        To disable cleartext connections, permitting `https` URLs only:
    
        ```java
        client.setConnectionSpecs(Arrays.asList(
            ConnectionSpec.MODERN_TLS, ConnectionSpec.COMPATIBLE_TLS));
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

          builder.socketFactory(SSLSocketFactory.getDefault())
        }
      }
    
      @Test fun noSslSocketFactoryConfigured() {
        val client =
          OkHttpClient.Builder()
            .connectionSpecs(listOf(ConnectionSpec.CLEARTEXT))
            .build()
        assertFailsWith<IllegalStateException> {
          client.sslSocketFactory
        }
      }
    
      @Test fun nullHostileProtocolList() {
        val nullHostileProtocols =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 13.2K bytes
    - Viewed (0)
Back to top