Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 87 for SSLSocketFactory (0.2 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  2. regression-test/src/androidTest/java/okhttp/regression/LetsEncryptTest.java

                  // noticeable memory pressure in Android apps.
    //              .addPlatformTrustedCertificates()
                  .build();
    
          builder.sslSocketFactory(certificates.sslSocketFactory(), certificates.trustManager());
        }
    
        OkHttpClient client = builder.build();
    
        sendRequest(client, "https://valid-isrgrootx1.letsencrypt.org/robots.txt");
    
        try {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Nov 17 07:40:31 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/DuplexTest.kt

      }
    
      private fun enableTls() {
        client =
          client.newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
      private inner class DelayedRequestBody(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

        public void setDnsResolver(final DnsResolver dnsResolver) {
            this.dnsResolver = dnsResolver;
        }
    
        public void setSslSocketFactory(final LayeredConnectionSocketFactory sslSocketFactory) {
            this.sslSocketFactory = sslSocketFactory;
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 09 09:29:26 UTC 2024
    - 41K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/kt/CustomTrust.kt

            // Uncomment if standard certificates are also required.
            // .addPlatformTrustedCertificates()
            .build()
        client =
          OkHttpClient.Builder()
            .sslSocketFactory(certificates.sslSocketFactory(), certificates.trustManager)
            .build()
      }
    
      fun run() {
        showUrl("https://squareup.com/robots.txt")
        showUrl("https://publicobject.com/helloworld.txt")
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

        }
        val handshakeCertificates = builder.build()
        return clientTestRule.newClientBuilder()
          .sslSocketFactory(
            handshakeCertificates.sslSocketFactory(),
            handshakeCertificates.trustManager,
          )
          .build()
      }
    
      private fun buildServerSslSocketFactory(): SSLSocketFactory {
        // The test uses JDK default SSL Context instead of the Platform provided one
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  7. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

      private fun doServerHandshake(server: HandshakeCertificates): Future<Handshake> {
        return executorService.submit<Handshake> {
          serverSocket!!.accept().use { rawSocket ->
            val sslSocket =
              server.sslSocketFactory().createSocket(
                rawSocket,
                rawSocket.inetAddress.hostAddress,
                rawSocket.port,
                true,
              ) as SSLSocket
            sslSocket.use {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.enqueue(
          MockResponse.Builder()
            .body("abc")
            .build(),
        )
        val url = server.url("/")
        val connection = url.toUrl().openConnection() as HttpsURLConnection
        connection.sslSocketFactory = handshakeCertificates.sslSocketFactory()
        connection.hostnameVerifier = RecordingHostnameVerifier()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt

            .dns(dns)
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .build()
        val serverHandshakeCertificates =
          HandshakeCertificates.Builder()
            .heldCertificate(certificate)
            .build()
        server.useHttps(serverHandshakeCertificates.sslSocketFactory())
        url = server.url("/robots.txt")
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/connection/RetryConnectionTest.kt

        // sslV3 is not used because SSLv3 is not enabled on the socket.
      }
    
      private fun createSocketWithEnabledProtocols(vararg tlsVersions: TlsVersion): SSLSocket {
        return (handshakeCertificates.sslSocketFactory().createSocket() as SSLSocket).apply {
          enabledProtocols = javaNames(*tlsVersions)
        }
      }
    
      private fun assertEnabledProtocols(
        socket: SSLSocket,
        vararg required: TlsVersion,
      ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top