- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 91 for sslSocketFactory (0.1 sec)
-
mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt
import okio.buffer import okio.source /** A basic HTTP/2 server that serves the contents of a local directory. */ class Http2Server( private val baseDirectory: File, private val sslSocketFactory: SSLSocketFactory, ) : Http2Connection.Listener() { private fun run() { val serverSocket = ServerSocket(8888) serverSocket.reuseAddress = true while (true) { var socket: Socket? = null try {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 6.4K bytes - Viewed (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/Clients.kt
ianaSuites = ianaSuites, ) } fun systemDefault( name: String, version: String, ianaSuites: IanaSuites, ): Client { val socketFactory = SSLSocketFactory.getDefault() as SSLSocketFactory val sslSocket = socketFactory.createSocket() as SSLSocket return Client( userAgent = name, version = version,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/OpenJSSETest.kt
.build() client = client .newBuilder() .sslSocketFactory( handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ).build() server.useHttps(handshakeCertificates.sslSocketFactory()) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 3.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/CurlHelperTest.java
NodeManager nodeManager = getNodeManager(curlHelper); assertNotNull(nodeManager); // Verify SSL socket factory is not set SSLSocketFactory sslSocketFactory = getSSLSocketFactory(curlHelper); assertNull(sslSocketFactory); } public void test_init_withInvalidSSLCertificate() { // Create a temporary invalid certificate file File invalidCertFile = null;
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 05:35:01 UTC 2025 - 10.1K 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 Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 51.7K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt
val handshakeCertificates = localhost() server.useHttps(handshakeCertificates.sslSocketFactory()) val dns = Dns { Dns.SYSTEM.lookup(server.hostName) } val client = clientTestRule .newClientBuilder() .sslSocketFactory( handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ).dns(dns) .build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 6.3K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/HttpsServer.java
server.useHttps(serverCertificates.sslSocketFactory(), false); server.enqueue(new MockResponse()); HandshakeCertificates clientCertificates = new HandshakeCertificates.Builder() .addTrustedCertificate(localhostCertificate.certificate()) .build(); OkHttpClient client = new OkHttpClient.Builder() .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager()) .build();
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jan 02 14:04:37 UTC 2023 - 2.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/FallbackTestClientSocketFactory.kt
* limitations under the License. */ package okhttp3 import javax.net.ssl.SSLSocket import javax.net.ssl.SSLSocketFactory import okhttp3.FallbackTestClientSocketFactory.Companion.TLS_FALLBACK_SCSV /** * An SSLSocketFactory that delegates calls. Sockets created by the delegate are wrapped with ones * that will not accept the [TLS_FALLBACK_SCSV] cipher, thus bypassing server-side fallback
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 2K 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 Sep 05 11:42:10 UTC 2025 - Last Modified: Fri May 30 21:28:20 UTC 2025 - 7.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
if (https) { server.useHttps(handshakeCertificates.sslSocketFactory()) server2.useHttps(handshakeCertificates.sslSocketFactory()) server2.protocolNegotiationEnabled = false client = client .newBuilder() .sslSocketFactory( handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 133.2K bytes - Viewed (0)