Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 60 for TrustManager (0.16 seconds)

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

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

      }
    
      private fun enableTls() {
        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    }
    
    @Flaky // STDOUT logging enabled for test
    @Timeout(30)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 18:33:48 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt

                  return socket
                }
              },
            ).sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).eventListener(eventRecorder.eventListener)
            .apply {
              if (connectionType == HTTPS) {
                protocols(listOf(HTTP_1_1))
              }
            }.build()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt

      }
    
      private fun enableTls() {
        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt

      }
    
      private fun enableTls() {
        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server1.useHttps(handshakeCertificates.sslSocketFactory())
        server2.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
      private fun Call.cancelLater(delay: Duration) {
        thread(name = "canceler") {
          sleep(delay.inWholeMilliseconds)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 08 21:45:04 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  6. docs/changelogs/changelog_4x.md

    _2020-05-17_
    
     *  New: `HandshakeCertificates.Builder.addInsecureHost()` makes it easy to turn off security in
        private development environments that only carry test data. Prefer this over creating an
        all-trusting `TrustManager` because only hosts on the allowlist are insecure. From
        [our DevServer sample][dev_server]:
    
        ```kotlin
        val clientCertificates = HandshakeCertificates.Builder()
            .addPlatformTrustedCertificates()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

      }
    
      private fun enableTls() {
        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
      private inner class DelayedRequestBody(
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 25.8K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

      private fun enableTlsWithTunnel() {
        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
      @Test
      fun redirectUsingSameConnectionEventSequence() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 70.5K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

              .newClientBuilder()
              .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 =
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 67.4K bytes
    - Click Count (0)
  10. docs/changelogs/changelog_3x.md

     *  New: Accept user-provided trust managers in `OkHttpClient.Builder`. This
        allows OkHttp to satisfy its TLS requirements directly. Otherwise OkHttp
        will use reflection to extract the `TrustManager` from the
        `SSLSocketFactory`.
     *  New: Support prerelease Java 9. This gets ALPN from the platform rather than
        relying on the alpn-boot bootclasspath override.
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Click Count (0)
Back to Top