Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 40 for socketFactory (0.17 sec)

  1. docs/changelogs/upgrading_to_okhttp_4.md

    Kotlin does have properties and we take advantage of them in OkHttp.
    
     * **Address**: certificatePinner, connectionSpecs, dns, hostnameVerifier, protocols, proxy,
       proxyAuthenticator, proxySelector, socketFactory, sslSocketFactory, url
     * **Cache**: directory
     * **CacheControl**: immutable, maxAgeSeconds, maxStaleSeconds, minFreshSeconds, mustRevalidate,
       noCache, noStore, noTransform, onlyIfCached, sMaxAgeSeconds
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  2. container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt

      @Test
      fun testUrlConnectionSecureDirect() {
        val keyStoreFactory = KeyStoreFactory(Configuration.configuration(), MockServerLogger())
        HttpsURLConnection.setDefaultSSLSocketFactory(keyStoreFactory.sslContext().socketFactory)
    
        testRequest {
          val url = URI(mockServer.secureEndpoint + "/person?name=peter").toURL()
    
          val connection = url.openConnection() as HttpURLConnection
    
          assertThat(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.2K bytes
    - Viewed (1)
  3. okhttp/api/jvm/okhttp.api

    	public final fun -deprecated_socketFactory ()Ljavax/net/SocketFactory;
    	public final fun -deprecated_sslSocketFactory ()Ljavax/net/ssl/SSLSocketFactory;
    	public final fun -deprecated_url ()Lokhttp3/HttpUrl;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt

            .tlsVersions(tlsVersion)
            .build()
    
        var reuseSession = false
    
        val sslContext = handshakeCertificates.sslContext()
        val systemSslSocketFactory = sslContext.socketFactory
        val sslSocketFactory =
          object : DelegatingSSLSocketFactory(systemSslSocketFactory) {
            override fun configureSocket(sslSocket: SSLSocket): SSLSocket =
              sslSocket.apply {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (1)
  5. okhttp/src/jvmTest/kotlin/okhttp3/SocketChannelTest.kt

            .writeTimeout(2, SECONDS)
            .readTimeout(2, SECONDS)
            .apply {
              if (socketMode is TlsInstance) {
                if (socketMode.socketMode == Channel) {
                  socketFactory(ChannelSocketFactory())
                }
    
                connectionSpecs(
                  listOf(
                    ConnectionSpec
                      .Builder(ConnectionSpec.COMPATIBLE_TLS)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 8K bytes
    - Viewed (0)
  6. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

            println("Usage: Http2Server <base directory>")
            return
          }
          val server =
            Http2Server(
              File(args[0]),
              localhost().sslContext().socketFactory,
            )
          server.run()
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  7. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

          Platform
            .get()
            .newSSLContext()
            .apply {
              init(null, arrayOf(trustManager), null)
            }.socketFactory
    
        private fun createInsecureHostnameVerifier(): HostnameVerifier = HostnameVerifier { _, _ -> true }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

        server.enqueue(MockResponse())
        client =
          client
            .newBuilder()
            .socketFactory(uselessSocketFactory)
            .build()
        assertFailsWith<IllegalArgumentException> {
          getResponse(newRequest("/"))
        }
        client =
          client
            .newBuilder()
            .socketFactory(SocketFactory.getDefault())
            .build()
        val response = getResponse(newRequest("/"))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
  9. okhttp/src/jvmMain/kotlin/okhttp3/internal/platform/ConscryptPlatform.kt

        }
    
      override fun newSslSocketFactory(trustManager: X509TrustManager): SSLSocketFactory =
        newSSLContext()
          .apply {
            init(null, arrayOf<TrustManager>(trustManager), null)
          }.socketFactory
    
      companion object {
        val isSupported: Boolean =
          try {
            // Trigger an early exception over a fatal error, prefer a RuntimeException over Error.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt

        sslContext.init(arrayOf(keyManager), arrayOf(trustManager), SecureRandom())
    
        val client =
          OkHttpClient
            .Builder()
            .sslSocketFactory(sslContext.socketFactory, trustManager)
            .build()
    
        // An example test URL that returns client certificate details.
        val request =
          Request
            .Builder()
            .url("https://prod.idrix.eu/secure/")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 4.2K bytes
    - Viewed (0)
Back to top