Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for tlsVersions (0.06 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt

      }
    
      @Test
      fun testSessionReuse(tlsVersion: String = burstValues("TLSv1.2", "TLSv1.3")) {
        if (tlsVersion == TlsVersion.TLS_1_3.javaName) {
          assumeTrue(PlatformVersion.majorVersion != 8)
        }
    
        val sessionIds = mutableListOf<String>()
    
        enableTls()
    
        val tlsVersion = TlsVersion.forJavaName(tlsVersion)
        val spec =
          ConnectionSpec
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 5.9K bytes
    - Viewed (1)
  2. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

      }
    
      @Test
      fun socketPolicy() {
        val socketPolicy: SocketPolicy = SocketPolicy.KEEP_OPEN
      }
    
      @Test
      fun tlsVersion() {
        var tlsVersion: TlsVersion = TlsVersion.TLS_1_3
        val javaName: String = tlsVersion.javaName
        tlsVersion = TlsVersion.forJavaName("")
      }
    
      @Test
      fun webSocket() {
        val webSocket =
          object : WebSocket {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 47K bytes
    - Viewed (0)
  3. 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)
  4. okhttp/src/jvmTest/kotlin/okhttp3/CallHandshakeTest.kt

                  ConnectionSpec
                    .Builder(connectionSpec)
                    .apply {
                      if (tlsVersion != null) {
                        tlsVersions(tlsVersion)
                      }
                      if (cipherSuites != null) {
                        cipherSuites(*cipherSuites.toTypedArray())
                      }
                    }.build(),
                ),
              )
            }
    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/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)
  6. okhttp/api/android/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.3K bytes
    - Viewed (0)
  7. 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)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

              val localCertificates = readCertificateList(source)
              val tlsVersion =
                if (!source.exhausted()) {
                  TlsVersion.forJavaName(source.readUtf8LineStrict())
                } else {
                  TlsVersion.SSL_3_0
                }
              handshake = Handshake.get(tlsVersion, cipherSuite, peerCertificates, localCertificates)
            } else {
              handshake = null
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

              )
            }
          }
    
          val certificatePinner = address.certificatePinner!!
    
          val handshake =
            Handshake(
              unverifiedHandshake.tlsVersion,
              unverifiedHandshake.cipherSuite,
              unverifiedHandshake.localCertificates,
            ) {
              certificatePinner.certificateChainCleaner!!.clean(
                unverifiedHandshake.peerCertificates,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Oct 08 03:50:05 UTC 2025
    - 19.3K bytes
    - Viewed (2)
  10. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(reader.readLine()).isEqualTo("abc")
        val request = server.takeRequest()
        assertThat(request.requestUrl!!.scheme).isEqualTo("https")
        val handshake = request.handshake
        assertThat(handshake!!.tlsVersion).isNotNull()
        assertThat(handshake.cipherSuite).isNotNull()
        assertThat(handshake.localPrincipal).isNotNull()
        assertThat(handshake.localCertificates.size).isEqualTo(1)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 03 13:16:34 UTC 2025
    - 22.3K bytes
    - Viewed (0)
Back to top