Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for addPlatformTrustedCertificates (0.21 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

          .isEqualTo(listOf(certificate.certificate, intermediate.certificate))
      }
    
      @Test fun platformTrustedCertificates() {
        val handshakeCertificates =
          HandshakeCertificates.Builder()
            .addPlatformTrustedCertificates()
            .build()
        val acceptedIssuers = handshakeCertificates.trustManager.acceptedIssuers
        val names =
          acceptedIssuers
            .map { it.subjectDN.name }
            .toSet()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt

         * certificates. Applications that connect to a known set of servers may be able to mitigate
         * this problem with [certificate pinning][CertificatePinner].
         */
        fun addPlatformTrustedCertificates() =
          apply {
            val platformTrustManager = Platform.get().platformTrustManager()
            Collections.addAll(trustedCertificates, *platformTrustManager.acceptedIssuers)
          }
    
        /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_4x.md

        [our DevServer sample][dev_server]:
    
        ```kotlin
        val clientCertificates = HandshakeCertificates.Builder()
            .addPlatformTrustedCertificates()
            .addInsecureHost("localhost")
            .build()
    
        val client = OkHttpClient.Builder()
            .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        builder = builder.heldCertificate(heldCertificate, heldCertificate.certificate)
        builder = builder.addTrustedCertificate(heldCertificate.certificate)
        builder = builder.addPlatformTrustedCertificates()
        val handshakeCertificates: HandshakeCertificates = builder.build()
      }
    
      @Test
      fun heldCertificate() {
        val heldCertificate: HeldCertificate = HeldCertificate.Builder().build()
    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