- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for newSSLContext (0.11 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt
* ### Android Cleartext Permit Detection * * Supported on Android 6.0+ via `NetworkSecurityPolicy`. */ open class Platform { /** Prefix used on custom headers. */ fun getPrefix() = "OkHttp" open fun newSSLContext(): SSLContext = SSLContext.getInstance("TLS") open fun platformTrustManager(): X509TrustManager { val factory = TrustManagerFactory.getInstance( TrustManagerFactory.getDefaultAlgorithm(), )
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.8K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
authType: String?, ) {} override fun getAcceptedIssuers(): Array<X509Certificate> = arrayOf() } val sslContext = Platform.get().newSSLContext().apply { init(null, arrayOf(trustManager), null) } val sslSocketFactory = sslContext.socketFactory val hostnameVerifier = HostnameVerifier { _, _ -> true } client =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 27K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/OkHttpClientTest.kt
uri: URI, socketAddress: SocketAddress, e: IOException, ) {} } val trustManager = get().platformTrustManager() val sslContext = get().newSSLContext() sslContext.init(null, null, null) // new client, may share all same fields but likely different connection pool assertNotSame( client.routeDatabase, OkHttpClient.Builder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 13.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
val trustManager = newTrustManager( keystoreType, emptyList(), emptyList(), ) val sslContext = get().newSSLContext() sslContext.init( arrayOf<KeyManager>(x509KeyManager), arrayOf<TrustManager>(trustManager), SecureRandom(), ) return sslContext.socketFactory }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 23.8K bytes - Viewed (0)