Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 49 for sslContext (0.08 sec)

  1. container-tests/src/test/java/okhttp3/containers/BasicMockServerTest.kt

        fun OkHttpClient.Builder.trustMockServer(): OkHttpClient.Builder =
          apply {
            val keyStoreFactory = KeyStoreFactory(Configuration.configuration(), MockServerLogger())
    
            val socketFactory = keyStoreFactory.sslContext().socketFactory
    
            val trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm())
            trustManagerFactory.init(keyStoreFactory.loadOrCreateKeyStore())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

                try {
                    final SSLContext sslContext = new SSLContextBuilder().loadTrustMaterial(null, (arg0, arg1) -> true).build();
                    httpClientBuilder.setSSLContext(sslContext);
                    return new SSLConnectionSocketFactory(sslContext, NoopHostnameVerifier.INSTANCE);
                } catch (final Exception e) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 09 09:29:26 UTC 2024
    - 41K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

          newTrustManager(
            keystoreType,
            emptyList(),
            emptyList(),
          )
        val sslContext = get().newSSLContext()
        sslContext.init(
          arrayOf<KeyManager>(x509KeyManager),
          arrayOf<TrustManager>(trustManager),
          SecureRandom(),
        )
        return sslContext.socketFactory
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         * }
         * X509TrustManager trustManager = (X509TrustManager) trustManagers[0];
         *
         * SSLContext sslContext = SSLContext.getInstance("TLS");
         * sslContext.init(null, new TrustManager[] { trustManager }, null);
         * SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();
         *
         * OkHttpClient client = new OkHttpClient.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val trustManager: X509TrustManager = handshakeCertificates.trustManager
        val sslSocketFactory: SSLSocketFactory = handshakeCertificates.sslSocketFactory()
        val sslContext: SSLContext = handshakeCertificates.sslContext()
      }
    
      @Test
      fun handshakeCertificatesBuilder() {
        var builder: HandshakeCertificates.Builder = HandshakeCertificates.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

    import java.util.concurrent.TimeUnit
    import java.util.concurrent.atomic.AtomicInteger
    import java.util.logging.Level
    import java.util.logging.Logger
    import javax.net.ServerSocketFactory
    import javax.net.ssl.SSLContext
    import javax.net.ssl.SSLSocket
    import javax.net.ssl.SSLSocketFactory
    import javax.net.ssl.TrustManager
    import javax.net.ssl.X509TrustManager
    import mockwebserver3.SocketPolicy.DisconnectAfterRequest
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

        assertThat(verifier).isInstanceOf<OkHostnameVerifier>()
        val handshakeCertificates = platform.localhostHandshakeCertificates()
        val session = handshakeCertificates.sslContext().createSSLEngine().session
        assertThat(localVerifier.verify("\uD83D\uDCA9.com", session)).isFalse()
      }
    
      @Test fun verifyAsIpAddress() {
        // IPv4
        assertThat("127.0.0.1".canParseAsIpAddress()).isTrue()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  8. 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()
        server.useHttps(handshakeCertificates.sslSocketFactory())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SSPContext.java

     */
    package jcifs.smb;
    
    
    import org.bouncycastle.asn1.ASN1ObjectIdentifier;
    
    import jcifs.CIFSException;
    
    
    /**
     * @author mbechler
     *
     */
    public interface SSPContext {
    
        /**
         * @return the signing key for the session
         * 
         * @throws CIFSException
         */
        byte[] getSigningKey () throws CIFSException;
    
    
        /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.6K bytes
    - Viewed (0)
  10. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/platform/Platform;->connectSocket(Ljava/net/Socket;Ljava/net/InetSocketAddress;I)V
    HSPLokhttp3/internal/platform/Platform;->newSSLContext()Ljavax/net/ssl/SSLContext;
    HSPLokhttp3/internal/platform/Platform;->newSslSocketFactory(Ljavax/net/ssl/X509TrustManager;)Ljavax/net/ssl/SSLSocketFactory;
    HSPLokhttp3/internal/platform/Platform;->platformTrustManager()Ljavax/net/ssl/X509TrustManager;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
Back to top