Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 21 for localhostHandshakeCertificates (0.26 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

        }
    
        fun androidSdkVersion(): Int? =
          if (Platform.isAndroid) {
            Build.VERSION.SDK_INT
          } else {
            null
          }
    
        fun localhostHandshakeCertificates(): HandshakeCertificates =
          when {
            isBouncyCastle() -> localhostHandshakeCertificatesWithRsa2048
            else -> localhost()
          }
    
        val isAndroid: Boolean
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 15.5K bytes
    - Click Count (1)
  2. okhttp/src/jvmTest/kotlin/okhttp3/InsecureForHostTest.kt

        platform.assumeNotBouncyCastle()
      }
    
      @Test fun `untrusted host in insecureHosts connects successfully`() {
        val serverCertificates = platform.localhostHandshakeCertificates()
        server.useHttps(serverCertificates.sslSocketFactory())
        server.enqueue(MockResponse())
    
        val clientCertificates =
          HandshakeCertificates
            .Builder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt

      @JvmField
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      @JvmField
      @RegisterExtension
      val platform = PlatformRule()
    
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private lateinit var client: OkHttpClient
      private lateinit var cache: Cache
      private val nullHostnameVerifier = HostnameVerifier { _: String?, _: SSLSession? -> true }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 6K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt

      @JvmField @RegisterExtension
      var platform = PlatformRule()
    
      @JvmField @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      var client = clientTestRule.newClient()
    
      @StartStop
      private val server = MockWebServer()
    
      @BeforeEach
      fun setUp() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 5.9K bytes
    - Click Count (1)
  5. okhttp/src/jvmTest/kotlin/okhttp3/JSSETest.kt

    class JSSETest {
      @JvmField @RegisterExtension
      var platform = PlatformRule()
    
      @JvmField @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      var client = clientTestRule.newClient()
    
      @StartStop
      private val server = MockWebServer()
    
      @BeforeEach
      fun setUp() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 5.5K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt

        OkHttpClientTestRule().apply {
          recordFrames = true
          recordSslDebug = true
        }
    
      private var client = clientTestRule.newClient()
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      @StartStop
      private val server = MockWebServer()
    
      @Test
      fun legalToExecuteTwiceCloning() {
        server.enqueue(MockResponse(body = "abc"))
        server.enqueue(MockResponse(body = "def"))
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt

      @StartStop
      val server1 = MockWebServer()
    
      @StartStop
      val server2 = MockWebServer()
    
      private var eventRecorder = EventRecorder()
    
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      val dns = FakeDns()
    
      val ipv4 = InetAddress.getByName("203.0.113.1")
      val ipv6 = InetAddress.getByName("2001:db8:ffff:ffff:ffff:ffff:ffff:1")
    
      val refusedStream =
        MockResponse
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Jan 10 15:25:06 GMT 2026
    - 11.8K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt

      val platform = PlatformRule()
    
      @RegisterExtension
      @JvmField
      var clientTestRule = OkHttpClientTestRule()
    
      private val eventRecorder = EventRecorder()
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      private var client =
        clientTestRule
          .newClientBuilder()
          .eventListenerFactory(clientTestRule.wrap(eventRecorder))
          .build()
    
      @StartStop
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 11:54:15 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt

      @RegisterExtension
      val clientTestRule: OkHttpClientTestRule = OkHttpClientTestRule()
    
      @StartStop
      private val server = MockWebServer()
    
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private var client: OkHttpClient = clientTestRule.newClient()
    
      @Test
      fun connectionsAreReused() {
        server.enqueue(MockResponse(body = "a"))
        server.enqueue(MockResponse(body = "b"))
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 12.3K bytes
    - Click Count (1)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt

      }
    
      enum class ConnectionType {
        H2,
        HTTPS,
        HTTP,
      }
    
      @JvmField @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      private lateinit var server: MockWebServer
      private lateinit var client: OkHttpClient
    
      val eventRecorder = EventRecorder()
    
      @BeforeEach
      fun setUp() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 9.4K bytes
    - Click Count (0)
Back to Top