- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for SSLSocketFactory (0.06 sec)
-
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
.Builder() .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager) .build() localhostInsecureRequest() } finally { Security.removeProvider("GmsCore_OpenSSL") client.close() } } private fun localhostInsecureRequest() { server.useHttps(handshakeCertificates.sslSocketFactory()) server.enqueue(MockResponse())
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 29.9K bytes - Viewed (0) -
okhttp-tls/README.md
returns to its clients. The returned instance can create an `SSLSocketFactory` that implements this policy: ```java HandshakeCertificates serverCertificates = new HandshakeCertificates.Builder() .heldCertificate(localhostCertificate) .build(); MockWebServer server = new MockWebServer(); server.useHttps(serverCertificates.sslSocketFactory(), false); ```
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Oct 30 21:39:59 UTC 2025 - 9.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt
} } private fun enableTls() { client = client .newBuilder() .sslSocketFactory( handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ).build() server.useHttps(handshakeCertificates.sslSocketFactory()) }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Nov 01 12:18:11 UTC 2025 - 5.9K bytes - Viewed (1) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
val protocols: List<Protocol> = address.protocols val connectionSpecs: List<ConnectionSpec> = address.connectionSpecs val proxySelector: ProxySelector = address.proxySelector val sslSocketFactory: SSLSocketFactory? = address.sslSocketFactory val hostnameVerifier: HostnameVerifier? = address.hostnameVerifier val certificatePinner: CertificatePinner? = address.certificatePinner } @Test fun authenticator() {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 47K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/SingleAndroidTest.kt
OkHttpClient .Builder() .sslSocketFactory( handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ).connectionPool(ConnectionPool(0, 1, TimeUnit.SECONDS)) .build() private val server = MockWebServer() @Test fun testHttpsRequest() { server.useHttps(handshakeCertificates.sslSocketFactory()) server.enqueue(MockResponse())Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Nov 21 12:33:41 UTC 2025 - 2.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/SocketChannelTest.kt
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Nov 01 12:18:11 UTC 2025 - 7.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt
message = "Use the sslSocketFactory overload that accepts a X509TrustManager.", level = DeprecationLevel.ERROR, ) fun sslSocketFactory(sslSocketFactory: SSLSocketFactory) = apply { if (sslSocketFactory != this.sslSocketFactoryOrNull) { this.routeDatabase = null } this.sslSocketFactoryOrNull = sslSocketFactory this.x509TrustManagerOrNull =Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Oct 07 21:55:03 UTC 2025 - 51.4K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlRequestTest.java
} @Test public void testSslSocketFactoryMethod() { CurlRequest request = new CurlRequest(Method.GET, "https://example.com"); SSLSocketFactory factory = (SSLSocketFactory) SSLSocketFactory.getDefault(); CurlRequest result = request.sslSocketFactory(factory); assertSame(request, result); // Fluent API } @Test public void testBodyStringMethod() {Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Mon Nov 24 03:10:07 UTC 2025 - 20.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
} } thread.start() return thread } private fun socketFactoryWithCipherSuite( sslSocketFactory: SSLSocketFactory, cipherSuite: CipherSuite, ): SSLSocketFactory { return object : DelegatingSSLSocketFactory(sslSocketFactory) { override fun configureSocket(sslSocket: SSLSocket): SSLSocket { sslSocket.enabledCipherSuites = arrayOf(cipherSuite.javaName)Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 147.4K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt
proxySelector: ProxySelector = this.proxySelector, sslSocketFactory: SSLSocketFactory? = this.sslSocketFactory, hostnameVerifier: HostnameVerifier? = this.hostnameVerifier, ): Address = Address( uriHost = uriHost, uriPort = uriPort, dns = dns, socketFactory = SocketFactory.getDefault(), sslSocketFactory = sslSocketFactory, hostnameVerifier = hostnameVerifier,Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Oct 08 03:50:05 UTC 2025 - 6.7K bytes - Viewed (0)