Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 22 of 22 for addTrustedCertificate (0.07 seconds)

  1. 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)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
  2. 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() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 49.7K bytes
    - Click Count (0)
Back to Top