Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for acceptedIssuers (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/InsecureExtendedTrustManager.kt

      private val delegate: X509ExtendedTrustManager,
      private val insecureHosts: List<String>,
    ) : X509ExtendedTrustManager() {
      override fun getAcceptedIssuers(): Array<X509Certificate> = delegate.acceptedIssuers
    
      override fun checkServerTrusted(
        chain: Array<out X509Certificate>,
        authType: String,
        socket: Socket,
      ) {
        if (socket.peerName() !in insecureHosts) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt

         */
        fun addPlatformTrustedCertificates() =
          apply {
            val platformTrustManager = Platform.get().platformTrustManager()
            Collections.addAll(trustedCertificates, *platformTrustManager.acceptedIssuers)
          }
    
        /**
         * Configures this to not authenticate the HTTPS server on to [hostname]. This makes the user
         * vulnerable to man-in-the-middle attacks and should only be used only in private development
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat May 10 11:15:14 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  3. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        enableTls()
    
        val certificatePinner =
          CertificatePinner
            .Builder()
            .add(
              server.hostName,
              CertificatePinner.pin(handshakeCertificates.trustManager.acceptedIssuers[0]),
            ).build()
        client = client.newBuilder().certificatePinner(certificatePinner).build()
    
        server.enqueue(MockResponse(body = "abc"))
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 29.9K bytes
    - Click Count (0)
Back to Top