Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 34 of 34 for HostnameVerifier (0.14 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/HostnameVerifierTest.kt

        assertThat(verifier.verify("���.com", session)).isFalse()
        assertThat(verifier.verify("℡.com", session)).isFalse()
      }
    
      @Test fun thatCatchesErrorsWithBadSession() {
        val localVerifier = OkHttpClient().hostnameVerifier
    
        // Since this is public API, okhttp3.internal.tls.OkHostnameVerifier.verify is also
        assertThat(verifier).isInstanceOf<OkHostnameVerifier>()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 40.4K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
      @Test
      fun redirectUsingSameConnectionEventSequence() {
        server.enqueue(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 70.7K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

              .protocols(listOf(Protocol.HTTP_2, Protocol.HTTP_1_1))
              .sslSocketFactory(
                handshakeCertificates.sslSocketFactory(),
                handshakeCertificates.trustManager,
              ).hostnameVerifier(RecordingHostnameVerifier())
              .build()
          scheme = "https"
        } else {
          server.protocols = listOf(Protocol.H2_PRIOR_KNOWLEDGE)
          client =
            clientTestRule
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 67.5K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

          val sslSocketSession = sslSocket.session
          val unverifiedHandshake = sslSocketSession.handshake()
    
          // Verify that the socket's certificates are acceptable for the target host.
          if (!address.hostnameVerifier!!.verify(address.url.host, sslSocketSession)) {
            val peerCertificates = unverifiedHandshake.peerCertificates
            if (peerCertificates.isNotEmpty()) {
              val cert = peerCertificates[0] as X509Certificate
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 19.3K bytes
    - Click Count (2)
Back to Top