- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 26 for localhostHandshakeCertificates (0.26 seconds)
-
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: BooleanCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 15.5K bytes - Click Count (1) -
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) -
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) -
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) -
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) -
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) -
okhttp/src/jvmTest/kotlin/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. */
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Sep 16 07:21:43 GMT 2025 - 11.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt
val clientTestRule = OkHttpClientTestRule() @StartStop private val server = MockWebServer() private var eventRecorder = EventRecorder() private val handshakeCertificates = platform.localhostHandshakeCertificates() private var client = clientTestRule .newClientBuilder() .eventListenerFactory(clientTestRule.wrap(eventRecorder)) .build() fun executeAndCheckUpgrade(request: Request) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 08 21:07:01 GMT 2026 - 9.7K bytes - Click Count (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
val platform = PlatformRule() @RegisterExtension val clientTestRule = OkHttpClientTestRule() @StartStop private val server = MockWebServer() private val handshakeCertificates = platform.localhostHandshakeCertificates() private val logRecorder = HttpLoggingInterceptorTest.LogRecorder( prefix = Regex("""\[\d+ ms] """), ) private val loggingEventListenerFactory = LoggingEventListener.Factory(logRecorder)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 10.2K bytes - Click Count (0) -
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)