Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 112 for handshake (0.3 sec)

  1. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

            .build(),
        )
        val call = client.newCall(Request.Builder().url(server.url("/")).build())
        val response = call.execute()
        assertThat(response.handshake!!.peerPrincipal)
          .isEqualTo(X500Principal("CN=Local Host"))
        assertThat(response.handshake!!.localPrincipal)
          .isEqualTo(X500Principal("CN=Jethro Willis"))
        assertThat(response.body.string()).isEqualTo("abc")
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

        platform.assumeNotConscrypt()
        platform.assumeNotBouncyCastle()
    
        val client = makeClient(ConnectionSpec.RESTRICTED_TLS, TlsVersion.TLS_1_2)
    
        val handshake = makeRequest(client)
    
        assertThat(handshake.cipherSuite).isIn(*expectedModernTls12CipherSuites.toTypedArray())
    
        // Probably something like
        // TLS_AES_128_GCM_SHA256
        // TLS_AES_256_GCM_SHA384
    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)
  3. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        val handshake = request.handshake
        assertThat(handshake!!.tlsVersion).isNotNull()
        assertThat(handshake.cipherSuite).isNotNull()
        assertThat(handshake.localPrincipal).isNotNull()
        assertThat(handshake.localCertificates.size).isEqualTo(1)
        assertThat(handshake.peerPrincipal).isNull()
        assertThat(handshake.peerCertificates.size).isEqualTo(0)
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt

     * Client and server exchange these certificates during the handshake phase of a TLS connection.
     *
     * ### Server Authentication
     *
     * This is the most common form of TLS authentication: clients verify that servers are trusted and
     * that they own the hostnames that they represent. Server authentication is required.
     *
     * To perform server authentication:
     *
     *  * The server's handshake certificates must have a [held certificate][HeldCertificate] (a
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.5K bytes
    - Viewed (1)
  5. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

      }
    
      @Test @Disabled
      fun handshake() {
        val handshake: Handshake =
          Handshake.get((localhost().sslSocketFactory().createSocket() as SSLSocket).session)
        val tlsVersion: TlsVersion = handshake.tlsVersion()
        val cipherSuite: CipherSuite = handshake.cipherSuite()
        val peerCertificates: List<Certificate> = handshake.peerCertificates()
        val peerPrincipal: Principal? = handshake.peerPrincipal()
    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/KotlinSourceModernTest.kt

        val formBody: FormBody = builder.build()
      }
    
      @Test
      fun handshake() {
        var handshake: Handshake =
          (localhost().sslSocketFactory().createSocket() as SSLSocket).session.handshake()
        val listOfCertificates: List<Certificate> = listOf()
        handshake =
          Handshake.get(
            TlsVersion.TLS_1_3,
            CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
    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)
  7. docs/features/connections.md

     * Keep whichever TCP connection succeeds first and cancel all the others.
     * Race TCP only. Only attempt a TLS handshake on the winning TCP connection.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Feb 21 03:33:59 GMT 2022
    - 5.4K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Cache.kt

            if (url.isHttps) {
              sink.writeByte('\n'.code)
              sink.writeUtf8(handshake!!.cipherSuite.javaName).writeByte('\n'.code)
              writeCertList(sink, handshake.peerCertificates)
              writeCertList(sink, handshake.localCertificates)
              sink.writeUtf8(handshake.tlsVersion.javaName).writeByte('\n'.code)
            }
          }
        }
    
        @Throws(IOException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/CallConnectionUser.kt

        poolConnectionListener.connectFailed(route, call, e)
      }
    
      override fun secureConnectStart() {
        eventListener.secureConnectStart(call)
      }
    
      override fun secureConnectEnd(handshake: Handshake?) {
        eventListener.secureConnectEnd(call, handshake)
      }
    
      override fun callConnectEnd(
        route: Route,
        protocol: Protocol?,
      ) {
        eventListener.connectEnd(call, route.socketAddress, route.proxy, protocol)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectionUser.kt

      fun removePlanToCancel(connectPlan: ConnectPlan)
    
      fun updateRouteDatabaseAfterSuccess(route: Route)
    
      fun connectStart(route: Route)
    
      fun secureConnectStart()
    
      fun secureConnectEnd(handshake: Handshake?)
    
      fun callConnectEnd(
        route: Route,
        protocol: Protocol?,
      )
    
      fun connectionConnectEnd(
        connection: Connection,
        route: Route,
      )
    
      fun connectFailed(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top