Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 39 for tlsVersion (0.04 sec)

  1. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/RecordedRequest.kt

        message = "Use body.readUtf8()",
        replaceWith = ReplaceWith("body.readUtf8()"),
        level = DeprecationLevel.ERROR,
      )
      val utf8Body: String
        get() = body.readUtf8()
    
      val tlsVersion: TlsVersion?
        get() = handshake?.tlsVersion
    
      internal constructor(
        requestLine: String,
        headers: Headers,
        chunkSizes: List<Int>,
        bodySize: Long,
        body: Buffer,
        sequenceNumber: Int,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. 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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Handshake.kt

      /**
       * Returns the TLS version used for this connection. This value wasn't tracked prior to OkHttp
       * 3.0. For responses cached by preceding versions this returns [TlsVersion.SSL_3_0].
       */
      @get:JvmName("tlsVersion") val tlsVersion: TlsVersion,
      /** Returns the cipher suite used for the connection. */
      @get:JvmName("cipherSuite") val cipherSuite: CipherSuite,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Apr 05 09:48:10 UTC 2025
    - 6.6K bytes
    - Viewed (1)
  4. okhttp/src/jvmTest/kotlin/okhttp3/CallHandshakeTest.kt

        )
        assertThat(handshake.tlsVersion).isEqualTo(TlsVersion.TLS_1_2)
      }
    
      @Test
      fun testDefaultHandshakeCipherSuiteOrderingTls12Modern() {
        // We are avoiding making guarantees on ordering of secondary Platforms.
        platform.assumeNotConscrypt()
        platform.assumeNotBouncyCastle()
    
        val client = makeClient(ConnectionSpec.MODERN_TLS, TlsVersion.TLS_1_2)
    
        val handshake = makeRequest(client)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Sep 16 07:21:43 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionSpec.kt

            this.tlsVersions = null
          }
    
        fun tlsVersions(vararg tlsVersions: TlsVersion): Builder =
          apply {
            require(tls) { "no TLS versions for cleartext connections" }
    
            val strings = tlsVersions.map { it.javaName }.toTypedArray()
            return tlsVersions(*strings)
          }
    
        fun tlsVersions(vararg tlsVersions: String) =
          apply {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/SocketChannelTest.kt

        provider: Provider = Provider.JSSE,
        protocol: Protocol = burstValues(HTTP_1_1, HTTP_2),
        tlsVersion: TlsVersion = burstValues(TLS_1_3, TLS_1_2),
        socketMode: SocketMode = burstValues(Channel, Standard),
        tlsExtensionMode: TlsExtensionMode = TlsExtensionMode.STANDARD,
      ) {
        testConnection(TlsInstance(provider, protocol, tlsVersion, socketMode, tlsExtensionMode))
      }
    
      private fun testConnection(socketMode: SocketMode) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/OpenJSSETest.kt

        val request = Request(server.url("/"))
    
        val response = client.newCall(request).execute()
    
        response.use {
          assertEquals(200, response.code)
          assertEquals(TlsVersion.TLS_1_3, response.handshake?.tlsVersion)
          assertEquals(Protocol.HTTP_2, response.protocol)
    
          assertThat(response.exchangeAccessor!!.connectionAccessor.socket())
            .isInstanceOf<SSLSocketImpl>()
        }
      }
    
      @Test
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  8. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        var body: Buffer = recordedRequest.body
        var utf8Body: String = recordedRequest.body.readUtf8()
        var sequenceNumber: Int = recordedRequest.sequenceNumber
        var tlsVersion: TlsVersion? = recordedRequest.tlsVersion
        var handshake: Handshake? = recordedRequest.handshake
      }
    
      @Test @Ignore
      fun socketPolicy() {
        val socketPolicy: SocketPolicy = SocketPolicy.KEEP_OPEN
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        response.use {
          assertEquals(200, response.code)
          assertEquals(Protocol.HTTP_2, response.protocol)
          val tlsVersion = response.handshake?.tlsVersion
          assertTrue(tlsVersion == TlsVersion.TLS_1_2 || tlsVersion == TlsVersion.TLS_1_3)
          assertEquals(
            "CN=localhost",
            (response.handshake!!.peerCertificates.first() as X509Certificate).subjectDN.name,
          )
        }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 29.9K bytes
    - Viewed (0)
  10. okhttp/api/jvm/okhttp.api

    }
    
    public final class okhttp3/TlsVersion : java/lang/Enum {
    	public static final field Companion Lokhttp3/TlsVersion$Companion;
    	public static final field SSL_3_0 Lokhttp3/TlsVersion;
    	public static final field TLS_1_0 Lokhttp3/TlsVersion;
    	public static final field TLS_1_1 Lokhttp3/TlsVersion;
    	public static final field TLS_1_2 Lokhttp3/TlsVersion;
    	public static final field TLS_1_3 Lokhttp3/TlsVersion;
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.2K bytes
    - Viewed (0)
Back to top