Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 33 for SSLSocketFactory (0.09 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RealInterceptorChain.kt

        return copy(proxyAuthenticator = proxyAuthenticator)
      }
    
      override fun withSslSocketFactory(
        sslSocketFactory: SSLSocketFactory?,
        x509TrustManager: X509TrustManager?,
      ): Interceptor.Chain {
        check(exchange == null) { "sslSocketFactory can't be adjusted in a network interceptor" }
    
        if (sslSocketFactory != null && x509TrustManager != null) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 12.8K bytes
    - Click Count (0)
  2. 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);
        }
    
        @Test
        public void test_init_withInvalidSSLCertificate() {
            // Create a temporary invalid certificate file
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorOverridesTest.kt

        object SslSocketFactoryOverride : Override<SSLSocketFactory?> {
          override fun Interceptor.Chain.value(): SSLSocketFactory? = sslSocketFactoryOrNull
    
          override fun Interceptor.Chain.withOverride(value: SSLSocketFactory?): Interceptor.Chain =
            withSslSocketFactory(value, x509TrustManagerOrNull)
    
          override fun OkHttpClient.Builder.withOverride(value: SSLSocketFactory?): OkHttpClient.Builder =
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 11 02:37:00 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  4. android-test/src/androidDeviceTest/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())
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 29.9K bytes
    - Click Count (0)
  5. docs/features/https.md

            val sslContext = SSLContext.getInstance("TLS")
            sslContext.init(null, arrayOf<TrustManager>(trustManager), null)
            val sslSocketFactory = sslContext.socketFactory
    
            client = OkHttpClient.Builder()
                .sslSocketFactory(sslSocketFactory, trustManager)
                .build()
          }
    
          fun run() {
            val request = Request.Builder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

            .Builder()
            .addTrustedCertificate(rootCa.certificate)
            .build()
        val client =
          clientTestRule
            .newClientBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .certificatePinner(certificatePinner)
            .build()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 24.4K bytes
    - Click Count (2)
  7. okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt

        val connectionSpecs: List<ConnectionSpec> = address.connectionSpecs()
        val proxySelector: ProxySelector = address.proxySelector()
        val proxy: Proxy? = address.proxy()
        val sslSocketFactory: SSLSocketFactory? = address.sslSocketFactory()
        val hostnameVerifier: HostnameVerifier? = address.hostnameVerifier()
        val certificatePinner: CertificatePinner? = address.certificatePinner()
      }
    
      @Test @Disabled
      fun cache() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 13.3K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/curl/CurlRequest.java

        }
    
        /**
         * Sets the SSL socket factory for secure connections.
         *
         * @param sslSocketFactory the SSL socket factory
         * @return this CurlRequest instance
         */
        public CurlRequest sslSocketFactory(final SSLSocketFactory sslSocketFactory) {
            this.sslSocketFactory = sslSocketFactory;
            return this;
        }
    
        /**
         * Sets the body content for the request.
         *
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 19.7K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/CallHandshakeTest.kt

          clientTestRule
            .newClientBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
    
        defaultEnabledCipherSuites =
          handshakeCertificates.sslSocketFactory().defaultCipherSuites.toList()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Sep 16 07:21:43 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        HttpUrl
          .Builder()
          .scheme(if (sslSocketFactory != null) "https" else "http")
          .host(hostName)
          .port(port)
          .build()
          .resolve(path)!!
    
      /**
       * Serve requests with HTTPS rather than otherwise.
       */
      public fun useHttps(sslSocketFactory: SSLSocketFactory) {
        this.sslSocketFactory = sslSocketFactory
      }
    
      /**
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 40.3K bytes
    - Click Count (0)
Back to Top