Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 67 for TrustManager (0.2 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/tls/CertificateChainCleaner.kt

      abstract fun clean(
        chain: List<Certificate>,
        hostname: String,
      ): List<Certificate>
    
      companion object {
        fun get(trustManager: X509TrustManager): CertificateChainCleaner {
          return Platform.get().buildCertificateChainCleaner(trustManager)
        }
    
        fun get(vararg caCerts: X509Certificate): CertificateChainCleaner {
          return BasicCertificateChainCleaner(BasicTrustRootIndex(*caCerts))
        }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

                    if ("all".equals(trustManager)) {
                        ftpsClient.setTrustManager(TrustManagerUtils.getAcceptAllTrustManager());
                    } else if ("valid".equals(trustManager)) {
                        ftpsClient.setTrustManager(TrustManagerUtils.getValidateServerCertificateTrustManager());
                    } else if ("none".equals(trustManager)) {
                        ftpsClient.setTrustManager(null);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        val trustManager = RecordingTrustManager(handshakeCertificates.trustManager)
        val sslContext = get().newSSLContext()
        sslContext.init(null, arrayOf<TrustManager>(trustManager), null)
        client =
          client.newBuilder()
            .hostnameVerifier(hostnameVerifier)
            .sslSocketFactory(sslContext.socketFactory, trustManager)
            .build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/platform/android/AndroidSocketAdapterTest.kt

        assertNotNull(adapter.trustManager(context.socketFactory))
      }
    
      @ParameterizedTest
      @MethodSource("data")
      fun testDoesntMatchSupportedCustomSocketFactory(adapter: SocketAdapter) {
        assumeFalse(adapter is StandardAndroidSocketAdapter)
    
        assertFalse(adapter.matchesSocketFactory(context.socketFactory))
        assertNull(adapter.trustManager(context.socketFactory))
      }
    
      @ParameterizedTest
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/platform/OpenJSSEPlatform.kt

          "Unexpected default trust managers: ${trustManagers.contentToString()}"
        }
        return trustManagers[0] as X509TrustManager
      }
    
      override fun trustManager(sslSocketFactory: SSLSocketFactory): X509TrustManager =
        throw UnsupportedOperationException(
          "clientBuilder.sslSocketFactory(SSLSocketFactory) not supported with OpenJSSE",
        )
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/HttpsServer.java

            .addTrustedCertificate(localhostCertificate.certificate())
            .build();
        OkHttpClient client = new OkHttpClient.Builder()
            .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager())
            .build();
    
        Call call = client.newCall(new Request.Builder()
            .url(server.url("/"))
            .build());
        Response response = call.execute();
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 02 14:04:37 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. okhttp-tls/api/okhttp-tls.api

    	public final fun keyManager ()Ljavax/net/ssl/X509KeyManager;
    	public final fun sslContext ()Ljavax/net/ssl/SSLContext;
    	public final fun sslSocketFactory ()Ljavax/net/ssl/SSLSocketFactory;
    	public final fun trustManager ()Ljavax/net/ssl/X509TrustManager;
    }
    
    public final class okhttp3/tls/HandshakeCertificates$Builder {
    	public fun <init> ()V
    	public final fun addInsecureHost (Ljava/lang/String;)Lokhttp3/tls/HandshakeCertificates$Builder;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Feb 26 19:17:33 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/SessionReuseTest.kt

                    sessionIds.add(sslSocket.session.id.toByteString().hex())
                  }
                },
              ),
            )
            .sslSocketFactory(sslSocketFactory, handshakeCertificates.trustManager)
            .build()
    
        server.enqueue(MockResponse(body = "abc1"))
        server.enqueue(MockResponse(body = "abc2"))
    
        val request = Request(server.url("/"))
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/platform/android/SocketAdapter.kt

    import javax.net.ssl.SSLSocket
    import javax.net.ssl.SSLSocketFactory
    import javax.net.ssl.X509TrustManager
    import okhttp3.Protocol
    
    interface SocketAdapter {
      fun isSupported(): Boolean
    
      fun trustManager(sslSocketFactory: SSLSocketFactory): X509TrustManager? = null
    
      fun matchesSocket(sslSocket: SSLSocket): Boolean
    
      fun matchesSocketFactory(sslSocketFactory: SSLSocketFactory): Boolean = false
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         * sslContext.init(null, new TrustManager[] { trustManager }, null);
         * SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();
         *
         * OkHttpClient client = new OkHttpClient.Builder()
         *     .sslSocketFactory(sslSocketFactory, trustManager)
         *     .build();
         * ```
         *
         * ## TrustManagers on Android are Weird!
         *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
Back to top