- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getSocketFactory (0.09 sec)
-
src/test/java/org/codelibs/curl/CurlTest.java
SSLContext sslContext = SSLContext.getInstance("TLS"); sslContext.init(null, trustManagerFactory.getTrustManagers(), null); Curl.get("https://localhost:9200/").sslSocketFactory(sslContext.getSocketFactory()).execute(response -> { final String content = response.getContentAsString(); logger.info(content); assertTrue(content.length() > 0); }, e -> {
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 8.8K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/CustomCipherSuites.java
throws NoSuchAlgorithmException, KeyManagementException { SSLContext sslContext = SSLContext.getInstance("TLS"); sslContext.init(null, new TrustManager[] { trustManager }, null); return sslContext.getSocketFactory(); } /** Returns a trust manager that trusts the VM's default certificate authorities. */ private X509TrustManager defaultTrustManager() throws GeneralSecurityException {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Mar 14 21:57:42 UTC 2019 - 6.5K bytes - Viewed (0) -
samples/static-server/src/main/java/okhttp3/sample/SampleServer.java
this.sslContext = sslContext; this.root = root; this.port = port; } public void run() throws IOException { MockWebServer server = new MockWebServer(); server.useHttps(sslContext.getSocketFactory(), false); server.setDispatcher(this); server.start(port); } @Override public MockResponse dispatch(RecordedRequest request) { String path = request.getPath(); try {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jan 02 02:50:44 UTC 2019 - 4.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/CurlHelper.java
final SSLContext sslContext = SSLContext.getInstance("TLS"); sslContext.init(null, trustManagerFactory.getTrustManagers(), null); sslSocketFactory = sslContext.getSocketFactory(); } catch (final Exception e) { logger.warn("Failed to load {}", authorities, e); } } final String[] hosts = split(ResourceUtil.getFesenHttpUrl(), ",")
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 6K bytes - Viewed (0)