Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for HandshakeCertificates (0.08 sec)

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

            .build()
        val handshakeCertificates =
          HandshakeCertificates
            .Builder()
            .addTrustedCertificate(rootCa.certificate)
            .build()
        val client =
          clientTestRule
            .newClientBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 24.3K bytes
    - Viewed (1)
  2. okhttp-tls/README.md

        .build();
    ```
    
    [`HandshakeCertificates`][handshake_certificates] keeps the certificates for a TLS handshake.
    Use its [builder][handshake_certificates_builder] to define which certificates the HTTPS server
    returns to its clients. The returned instance can create an `SSLSocketFactory` that implements this
    policy:
    
    ```java
    HandshakeCertificates serverCertificates = new HandshakeCertificates.Builder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/OpenJSSETest.kt

            .build()
        val handshakeCertificates =
          HandshakeCertificates
            .Builder()
            .heldCertificate(heldCertificate)
            .addTrustedCertificate(heldCertificate.certificate)
            .build()
    
        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  4. mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt

        platform.assumeNotConscrypt()
    
        val handshakeCertificates = localhost()
        server.useHttps(handshakeCertificates.sslSocketFactory())
    
        val dns =
          Dns {
            Dns.SYSTEM.lookup(server.hostName)
          }
    
        val client =
          clientTestRule
            .newClientBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt

        }
      }
    
      private fun enableTls() {
        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/InsecureForHostTest.kt

            .build()
        val serverCertificates =
          HandshakeCertificates
            .Builder()
            .heldCertificate(heldCertificate)
            .build()
        server.useHttps(serverCertificates.sslSocketFactory())
        server.enqueue(MockResponse())
    
        val clientCertificates =
          HandshakeCertificates
            .Builder()
            .addPlatformTrustedCertificates()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/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: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

        if (https) {
          server.useHttps(handshakeCertificates.sslSocketFactory())
          server2.useHttps(handshakeCertificates.sslSocketFactory())
          server2.protocolNegotiationEnabled = false
          client =
            client
              .newBuilder()
              .sslSocketFactory(
                handshakeCertificates.sslSocketFactory(),
                handshakeCertificates.trustManager,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/CallHandshakeTest.kt

            .newClientBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
    
        defaultEnabledCipherSuites =
          handshakeCertificates.sslSocketFactory().defaultCipherSuites.toList()
        defaultSupportedCipherSuites =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt

        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .protocols(protocols.toList())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.protocols = client.protocols
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 12.2K bytes
    - Viewed (0)
Back to top