Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for KeyStoreFactory (0.07 sec)

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

        }
      }
    
      @Test
      fun testUrlConnectionSecureDirect() {
        val keyStoreFactory = KeyStoreFactory(Configuration.configuration(), MockServerLogger())
        HttpsURLConnection.setDefaultSSLSocketFactory(keyStoreFactory.sslContext().socketFactory)
    
        testRequest {
          val url = URI(mockServer.secureEndpoint + "/person?name=peter").toURL()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. container-tests/src/test/java/okhttp3/containers/BasicMockServerTest.kt

          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)
Back to top