Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addInsecureHost (0.06 sec)

  1. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        assumeTrue(Build.VERSION.SDK_INT >= 24)
    
        val clientCertificates =
          HandshakeCertificates
            .Builder()
            .apply {
              if (Build.VERSION.SDK_INT >= 24) {
                addInsecureHost(server.hostName)
              }
            }.build()
    
        client =
          client
            .newBuilder()
            .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 14:12:28 UTC 2025
    - 29K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_4x.md

    ## Version 4.7.1
    
    _2020-05-18_
    
     *  Fix: Pass the right arguments in the trust manager created for `addInsecureHost()`. Without the
        fix insecure hosts crash with an `IllegalArgumentException` on Android.
    
    
    ## Version 4.7.0
    
    _2020-05-17_
    
     *  New: `HandshakeCertificates.Builder.addInsecureHost()` makes it easy to turn off security in
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
Back to top