Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for addTrustedCertificate (0.22 sec)

  1. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

            .add(server.hostName, pin(goodIntermediateCa.certificate))
            .build()
        val handshakeCertificates =
          HandshakeCertificates.Builder()
            .addTrustedCertificate(rootCa.certificate)
            .addTrustedCertificate(compromisedRootCa.certificate)
            .build()
        val client =
          clientTestRule.newClientBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

            .signedBy(serverCa)
            .addSubjectAlternativeName(server.hostName)
            .build()
        val serverHandshakeCertificates =
          HandshakeCertificates.Builder()
            .addTrustedCertificate(clientCa.certificate)
            .heldCertificate(serverCertificate)
            .build()
        server.useHttps(serverHandshakeCertificates.sslSocketFactory(), false)
        server.enqueue(MockResponse().setBody("abc"))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

            .signedBy(serverCa)
            .addSubjectAlternativeName(server.hostName)
            .build()
        val serverHandshakeCertificates =
          HandshakeCertificates.Builder()
            .addTrustedCertificate(clientCa.certificate)
            .heldCertificate(serverCertificate)
            .build()
        server.useHttps(serverHandshakeCertificates.sslSocketFactory())
        server.enqueue(
          MockResponse.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

      }
    
      private fun buildClient(
        heldCertificate: HeldCertificate?,
        vararg intermediates: X509Certificate,
      ): OkHttpClient {
        val builder =
          HandshakeCertificates.Builder()
            .addTrustedCertificate(serverRootCa.certificate)
        if (heldCertificate != null) {
          builder.heldCertificate(heldCertificate, *intermediates)
        }
        val handshakeCertificates = builder.build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

                .addSubjectAlternativeName("localhost")
                .rsa2048()
                .build()
            return@lazy HandshakeCertificates.Builder()
              .heldCertificate(heldCertificate)
              .addTrustedCertificate(heldCertificate.certificate)
              .build()
          }
    
          init {
            val platformSystemProperty = getPlatformSystemProperty()
    
            if (platformSystemProperty == JDK9_PROPERTY) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.3K bytes
    - Viewed (1)
  6. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val heldCertificate: HeldCertificate = HeldCertificate.Builder().build()
        builder = builder.heldCertificate(heldCertificate, heldCertificate.certificate())
        builder = builder.addTrustedCertificate(heldCertificate.certificate())
      }
    
      @Test @Disabled
      fun heldCertificate() {
        val heldCertificate: HeldCertificate = HeldCertificate.Builder().build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt

        dns["nonsan.com"] = serverIps
        dns["www.wildcard.com"] = serverIps
        dns["differentdns.com"] = listOf()
        val handshakeCertificates =
          HandshakeCertificates.Builder()
            .addTrustedCertificate(rootCa.certificate)
            .build()
        client =
          clientTestRule.newClientBuilder()
            .fastFallback(false) // Avoid data races.
            .dns(dns)
            .sslSocketFactory(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val heldCertificate = HeldCertificate.Builder().build()
        builder = builder.heldCertificate(heldCertificate, heldCertificate.certificate)
        builder = builder.addTrustedCertificate(heldCertificate.certificate)
        builder = builder.addPlatformTrustedCertificates()
        val handshakeCertificates: HandshakeCertificates = builder.build()
      }
    
      @Test
      fun heldCertificate() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top