Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 13 for SSLSocketFactory (0.1 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. 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)
  3. 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);
    ```
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 9.1K bytes
    - Click Count (0)
  4. 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)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Interceptor.kt

         */
        fun withProxyAuthenticator(proxyAuthenticator: Authenticator): Chain
    
        /**
         * Returns the [SSLSocketFactory] for the OkHttpClient, or an override from the Call.Chain.
         */
        val sslSocketFactoryOrNull: SSLSocketFactory?
    
        /**
         * Returns a new chain with the specified [SSLSocketFactory].
         *
         * @throws IllegalStateException if this is a Network Interceptor, since the override is too late.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  6. 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)
  7. 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() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 49.7K bytes
    - Click Count (0)
  8. 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() {
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 24.7K bytes
    - Click Count (0)
  9. 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)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
  10. okhttp/api/jvm/okhttp.api

    	public final fun socketFactory (Ljavax/net/SocketFactory;)Lokhttp3/OkHttpClient$Builder;
    	public final fun sslSocketFactory (Ljavax/net/ssl/SSLSocketFactory;)Lokhttp3/OkHttpClient$Builder;
    	public final fun sslSocketFactory (Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/X509TrustManager;)Lokhttp3/OkHttpClient$Builder;
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 72.3K bytes
    - Click Count (0)
Back to Top