Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 70 for TrustManager (0.15 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        webServer.useHttps(handshakeCertificates.sslSocketFactory())
        client =
          client.newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .hostnameVerifier(RecordingHostnameVerifier())
            .build()
        websocketScheme("wss")
      }
    
      @Test
      fun httpsScheme() {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

      @Test
      fun handshakeCertificates() {
        val handshakeCertificates = HandshakeCertificates.Builder().build()
        val keyManager: X509KeyManager = handshakeCertificates.keyManager
        val trustManager: X509TrustManager = handshakeCertificates.trustManager
        val sslSocketFactory: SSLSocketFactory = handshakeCertificates.sslSocketFactory()
        val sslContext: SSLContext = handshakeCertificates.sslContext()
      }
    
      @Test
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  3. 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()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

     * your server's TLS administrator!
     *
     * ### Note about self-signed certificates
     *
     * [CertificatePinner] can not be used to pin self-signed certificate if such certificate is not
     * accepted by [javax.net.ssl.TrustManager].
     *
     * See also [OWASP: Certificate and Public Key Pinning][owasp].
     *
     * [charles]: http://charlesproxy.com
     * [fiddler]: http://fiddlertool.com
     * [langley]: http://goo.gl/AIx3e5
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CacheTest.kt

            .body("ABC")
            .build(),
        )
        client =
          client.newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .hostnameVerifier(NULL_HOSTNAME_VERIFIER)
            .build()
        val request = Request.Builder().url(server.url("/")).build()
        val response1 = client.newCall(request).execute()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  6. okhttp/src/test/java/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(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

            )
            .addNetworkInterceptor(networkInterceptor)
            .addInterceptor(applicationInterceptor)
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .hostnameVerifier(hostnameVerifier)
            .build()
        host = "${server.hostName}:${server.port}"
        url = server.url("/")
      }
    
      @Test
      fun levelGetter() {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 37.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/EventListenerTest.kt

      }
    
      private fun enableTlsWithTunnel() {
        client =
          client.newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
      @Test
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

            clientTestRule.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 =
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (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.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
Back to top