Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 22 of 22 for addTrustedCertificate (0.11 sec)

  1. okhttp/src/jvmTest/kotlin/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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

          HandshakeCertificates
            .Builder()
            .heldCertificate(serverCertificate)
            .build()
        val clientCertificates =
          HandshakeCertificates
            .Builder()
            .addTrustedCertificate(serverCertificate.certificate)
            .build()
        client =
          client
            .newBuilder()
            .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
Back to top