Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for tlsVersions (0.18 sec)

  1. okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt

              .containsExactly(
                TlsVersion.SSL_3_0.javaName,
                TlsVersion.TLS_1_1.javaName,
                TlsVersion.TLS_1_2.javaName,
              )
          }
        } else {
          if (majorVersion > 11) {
            assertThat(sslSocket.enabledProtocols)
              .containsExactly(
                TlsVersion.SSL_3_0.javaName,
                TlsVersion.TLS_1_1.javaName,
                TlsVersion.TLS_1_2.javaName,
    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)
  2. okhttp/src/test/java/okhttp3/TestTls13Request.kt

     */
    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(
      urls: List<String>,
      client: OkHttpClient,
    ) {
      try {
        for (url in urls) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/connection/RetryConnectionTest.kt

          enabledProtocols = javaNames(*tlsVersions)
        }
      }
    
      private fun assertEnabledProtocols(
        socket: SSLSocket,
        vararg required: TlsVersion,
      ) {
        assertThat(socket.enabledProtocols.toList()).containsExactlyInAnyOrder(*javaNames(*required))
      }
    
      private fun javaNames(vararg tlsVersions: TlsVersion) = tlsVersions.map { it.javaName }.toTypedArray()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CipherSuiteTest.kt

        socket.supportedCipherSuites = arrayOf("TLS_A")
        socket.enabledCipherSuites = arrayOf("TLS_A")
        val connectionSpec =
          ConnectionSpec.Builder(true)
            .tlsVersions(TlsVersion.TLS_1_1, TlsVersion.TLS_1_2, TlsVersion.TLS_1_3)
            .cipherSuites("TLS_A")
            .build()
        applyConnectionSpec(connectionSpec, socket, false)
        assertArrayEquals(arrayOf("TLSv1.1", "TLSv1.2"), socket.enabledProtocols)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  5. 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"),
          tlsVersions = tlsVersions,
          launch = launch,
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (1)
  6. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val proxy: Proxy = route.proxy()
        val inetSocketAddress: InetSocketAddress = route.socketAddress()
      }
    
      @Test @Disabled
      fun tlsVersion() {
        val tlsVersion: TlsVersion = TlsVersion.TLS_1_3
        val javaName: String = tlsVersion.javaName()
      }
    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)
  7. okhttp/src/main/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 {
    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)
  8. okhttp/src/test/java/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 {
    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/src/test/java/okhttp3/CallHandshakeTest.kt

        connectionSpec: ConnectionSpec? = null,
        tlsVersion: TlsVersion? = null,
        cipherSuites: List<CipherSuite>? = null,
      ): OkHttpClient {
        return this.client.newBuilder()
          .apply {
            if (connectionSpec != null) {
              connectionSpecs(
                listOf(
                  ConnectionSpec.Builder(connectionSpec)
                    .apply {
                      if (tlsVersion != null) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        val tlsVersions: Set<TlsVersion?> =
          EnumSet.of(
            TlsVersion.TLS_1_0,
            TlsVersion.TLS_1_2,
            TlsVersion.TLS_1_3,
          ) // v1.2 on OpenJDK 8.
        val request1 = server.takeRequest()
        assertThat(tlsVersions).contains(request1.handshake?.tlsVersion)
        val request2 = server.takeRequest()
        assertThat(tlsVersions).contains(request2.handshake?.tlsVersion)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
Back to top