Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 70 for trustManagers (0.15 sec)

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

              ),
            body = "ABC.2",
          ),
        )
        client =
          client.newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .hostnameVerifier(nullHostnameVerifier)
            .build()
        val request = Request(server.url("/"))
        val response1: Response = client.newCall(request).execute()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. regression-test/src/androidTest/java/okhttp/regression/LetsEncryptTest.java

                  // noticeable memory pressure in Android apps.
    //              .addPlatformTrustedCertificates()
                  .build();
    
          builder.sslSocketFactory(certificates.sslSocketFactory(), certificates.trustManager());
        }
    
        OkHttpClient client = builder.build();
    
        sendRequest(client, "https://valid-isrgrootx1.letsencrypt.org/robots.txt");
    
        try {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Nov 17 07:40:31 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CallTest.kt

                ConnectionSpec.MODERN_TLS,
              ),
            )
            .sslSocketFactory(
              suppressTlsFallbackClientSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .build()
        executeSynchronously("/").assertBody("abc")
      }
    
      @Test
      fun recoverFromTlsHandshakeFailure_tlsFallbackScsvEnabled() {
        platform.assumeNotConscrypt()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

    import java.util.logging.Level
    import java.util.logging.Logger
    import javax.net.ServerSocketFactory
    import javax.net.ssl.SSLContext
    import javax.net.ssl.SSLSocket
    import javax.net.ssl.SSLSocketFactory
    import javax.net.ssl.TrustManager
    import javax.net.ssl.X509TrustManager
    import mockwebserver3.SocketPolicy.DisconnectAfterRequest
    import mockwebserver3.SocketPolicy.DisconnectAtEnd
    import mockwebserver3.SocketPolicy.DisconnectAtStart
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

      fun handshakeCertificates() {
        val handshakeCertificates = HandshakeCertificates.Builder().build()
        val keyManager: X509KeyManager = handshakeCertificates.keyManager()
        val trustManager: X509TrustManager = handshakeCertificates.trustManager()
      }
    
      @Test @Disabled
      fun handshakeCertificatesBuilder() {
        var builder: HandshakeCertificates.Builder = HandshakeCertificates.Builder()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/SocketChannelTest.kt

                  ),
                )
    
                val sslSocketFactory = handshakeCertificates.sslSocketFactory()
    
                sslSocketFactory(
                  sslSocketFactory,
                  handshakeCertificates.trustManager,
                )
    
                when (socketMode.protocol) {
                  HTTP_2 -> protocols(listOf(HTTP_2, HTTP_1_1))
                  HTTP_1_1 -> protocols(listOf(HTTP_1_1))
                  else -> TODO()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/JSSETest.kt

      }
    
      private fun enableTls() {
        client =
          client.newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/CustomTrust.kt

            // .addPlatformTrustedCertificates()
            .build()
        client =
          OkHttpClient.Builder()
            .sslSocketFactory(certificates.sslSocketFactory(), certificates.trustManager)
            .build()
      }
    
      fun run() {
        showUrl("https://squareup.com/robots.txt")
        showUrl("https://publicobject.com/helloworld.txt")
      }
    
      private fun showUrl(url: String) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

        client =
          OkHttpClient.Builder()
            .dns(AsyncDns.toDns(AndroidAsyncDns.IPv4, AndroidAsyncDns.IPv6))
            .sslSocketFactory(localhost.sslSocketFactory(), localhost.trustManager)
            .build()
    
        serverRule.server.useHttps(localhost.sslSocketFactory())
      }
    
      @Test
      @Ignore("java.net.UnknownHostException: No results for localhost, in CI.")
      fun testRequest() {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

        val handshakeCertificates =
          HandshakeCertificates.Builder()
            .addPlatformTrustedCertificates()
            .build()
        val acceptedIssuers = handshakeCertificates.trustManager.acceptedIssuers
        val names =
          acceptedIssuers
            .map { it.subjectDN.name }
            .toSet()
    
        // It's safe to assume all platforms will have a major Internet certificate issuer.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top