Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for supportsTlsExtensions (0.51 sec)

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

            "will have no effect.",
        )
        fun supportsTlsExtensions(supportsTlsExtensions: Boolean) =
          apply {
            require(tls) { "no TLS extensions for cleartext connections" }
            this.supportsTlsExtensions = supportsTlsExtensions
          }
    
        fun build(): ConnectionSpec =
          ConnectionSpec(
            tls,
            supportsTlsExtensions,
            cipherSuites,
            tlsVersions,
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt

            .tlsVersions(TlsVersion.TLS_1_2)
            .supportsTlsExtensions(true)
            .build()
        assertThat(tlsSpec.cipherSuites!!.toList())
          .containsExactly(CipherSuite.TLS_RSA_WITH_RC4_128_MD5)
        assertThat(tlsSpec.tlsVersions!!.toList())
          .containsExactly(TlsVersion.TLS_1_2)
        assertThat(tlsSpec.supportsTlsExtensions).isTrue()
      }
    
      @Test
      fun tlsBuilder_defaultCiphers() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  3. android-test/src/androidTest/java/okhttp/android/test/alpn/AlpnOverrideTest.kt

            .sslSocketFactory(CustomSSLSocketFactory(client.sslSocketFactory), client.x509TrustManager!!)
            .connectionSpecs(
              listOf(
                ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
                  .supportsTlsExtensions(false)
                  .build(),
              ),
            )
            .eventListener(
              object : EventListener() {
                override fun connectionAcquired(
                  call: Call,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

      private fun connectTls(
        sslSocket: SSLSocket,
        connectionSpec: ConnectionSpec,
      ) {
        val address = route.address
        var success = false
        try {
          if (connectionSpec.supportsTlsExtensions) {
            Platform.get().configureTlsExtensions(sslSocket, address.url.host, address.protocols)
          }
    
          // Force handshake. This can throw!
          sslSocket.startHandshake()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val tlsVersions: List<TlsVersion>? = connectionSpec.tlsVersions()
        val cipherSuites: List<CipherSuite>? = connectionSpec.cipherSuites()
        val supportsTlsExtensions: Boolean = connectionSpec.supportsTlsExtensions()
      }
    
      @Test @Disabled
      fun cookie() {
        val cookie: Cookie = Cookie.Builder().build()
        val name: String = cookie.name()
        val value: String = cookie.value()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/SocketChannelTest.kt

                }
    
                connectionSpecs(
                  listOf(
                    ConnectionSpec.Builder(ConnectionSpec.COMPATIBLE_TLS)
                      .tlsVersions(socketMode.tlsVersion)
                      .supportsTlsExtensions(socketMode.tlsExtensionMode == STANDARD)
                      .build(),
                  ),
                )
    
                val sslSocketFactory = handshakeCertificates.sslSocketFactory()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8K bytes
    - Viewed (0)
  7. docs/changelogs/upgrading_to_okhttp_4.md

       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
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        connectionSpec = ConnectionSpec.CLEARTEXT
        val tlsVersions: List<TlsVersion>? = connectionSpec.tlsVersions
        val cipherSuites: List<CipherSuite>? = connectionSpec.cipherSuites
        val supportsTlsExtensions: Boolean = connectionSpec.supportsTlsExtensions
        val compatible: Boolean =
          connectionSpec.isCompatible(
            localhost().sslSocketFactory().createSocket() as SSLSocket,
          )
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  9. okhttp/api/okhttp.api

    	public final fun -deprecated_supportsTlsExtensions ()Z
    	public final fun -deprecated_tlsVersions ()Ljava/util/List;
    	public final fun cipherSuites ()Ljava/util/List;
    	public fun equals (Ljava/lang/Object;)Z
    	public fun hashCode ()I
    	public final fun isCompatible (Ljavax/net/ssl/SSLSocket;)Z
    	public final fun isTls ()Z
    	public final fun supportsTlsExtensions ()Z
    	public final fun tlsVersions ()Ljava/util/List;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  10. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/ConnectionSpec$Builder;->cipherSuites([Lokhttp3/CipherSuite;)Lokhttp3/ConnectionSpec$Builder;
    HSPLokhttp3/ConnectionSpec$Builder;->supportsTlsExtensions(Z)Lokhttp3/ConnectionSpec$Builder;
    HSPLokhttp3/ConnectionSpec$Builder;->tlsVersions([Ljava/lang/String;)Lokhttp3/ConnectionSpec$Builder;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
Back to top