Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for localhostHandshakeCertificates (0.2 sec)

  1. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

      val platform = PlatformRule()
    
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
      private lateinit var server: MockWebServer
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private val logRecorder =
        HttpLoggingInterceptorTest.LogRecorder(
          prefix = Regex("""\[\d+ ms] """),
        )
      private val loggingEventListenerFactory = LoggingEventListener.Factory(logRecorder)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/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 listener = RecordingEventListener()
    
      fun setUp(mode: Pair<CancelMode, ConnectionType>) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

      @RegisterExtension
      @JvmField
      val clientTestRule = OkHttpClientTestRule()
    
      @RegisterExtension
      @JvmField
      var platform = PlatformRule()
    
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      /** Ciphers in order we observed directly on the socket. */
      private lateinit var handshakeEnabledCipherSuites: List<String>
    
      /** Ciphers in order we observed on sslSocketFactory defaults. */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

      private lateinit var server1: MockWebServer
      private lateinit var server2: MockWebServer
    
      private var listener = RecordingEventListener()
    
      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(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue May 14 17:48:07 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/DuplexTest.kt

      @RegisterExtension
      var clientTestRule = OkHttpClientTestRule()
      private lateinit var server: MockWebServer
      private var listener = RecordingEventListener()
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private var client =
        clientTestRule.newClientBuilder()
          .eventListenerFactory(clientTestRule.wrap(listener))
          .build()
      private val executorService = Executors.newScheduledThreadPool(1)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt

      @RegisterExtension
      val clientTestRule: OkHttpClientTestRule = OkHttpClientTestRule()
    
      private lateinit var server: MockWebServer
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private var client: OkHttpClient = clientTestRule.newClient()
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
      }
    
      @Test
      fun connectionsAreReused() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

        }
    
        fun androidSdkVersion(): Int? {
          return if (Platform.isAndroid) {
            Build.VERSION.SDK_INT
          } else {
            null
          }
        }
    
        fun localhostHandshakeCertificates(): HandshakeCertificates {
          return when {
            isBouncyCastle() -> localhostHandshakeCertificatesWithRsa2048
            else -> localhost()
          }
        }
    
        val isAndroid: Boolean
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.3K bytes
    - Viewed (1)
  8. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(server.protocols.size).isEqualTo(1)
        assertThat(server.protocols[0]).isEqualTo(Protocol.H2_PRIOR_KNOWLEDGE)
      }
    
      @Test
      fun https() {
        val handshakeCertificates = platform.localhostHandshakeCertificates()
        server.useHttps(handshakeCertificates.sslSocketFactory(), false)
        server.enqueue(MockResponse().setBody("abc"))
        val url = server.url("/")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        assertThat(server.protocols.size).isEqualTo(1)
        assertThat(server.protocols[0]).isEqualTo(Protocol.H2_PRIOR_KNOWLEDGE)
      }
    
      @Test
      fun https() {
        val handshakeCertificates = platform.localhostHandshakeCertificates()
        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.enqueue(
          MockResponse.Builder()
            .body("abc")
            .build(),
        )
        val url = server.url("/")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

        // Since this is public API, okhttp3.internal.tls.OkHostnameVerifier.verify is also
        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() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 40.3K bytes
    - Viewed (0)
Back to top