- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 37 for tlsVersions (0.2 sec)
-
okhttp/src/main/kotlin/okhttp3/ConnectionSpec.kt
this.tlsVersions = null } fun tlsVersions(vararg tlsVersions: TlsVersion): Builder = apply { require(tls) { "no TLS versions for cleartext connections" } val strings = tlsVersions.map { it.javaName }.toTypedArray() return tlsVersions(*strings) } fun tlsVersions(vararg tlsVersions: String) = apply {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 13.4K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt
@SuppressSignatureCheck class WiresharkExample(tlsVersions: List<TlsVersion>, private val launch: Launch? = null) { private val connectionSpec = ConnectionSpec.Builder(ConnectionSpec.RESTRICTED_TLS) .tlsVersions(*tlsVersions.toTypedArray()) .build() private val eventListenerFactory = WireSharkListenerFactory( logFile = File("/tmp/key.log"), tlsVersions = tlsVersions, launch = launch, )
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.7K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt
.containsExactly( TlsVersion.SSL_3_0.javaName, TlsVersion.TLS_1_1.javaName, TlsVersion.TLS_1_2.javaName, ) } } else { if (majorVersion > 11) { assertThat(sslSocket.enabledProtocols) .containsExactly( TlsVersion.SSL_3_0.javaName, TlsVersion.TLS_1_1.javaName, TlsVersion.TLS_1_2.javaName,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 14.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/TestTls13Request.kt
*/ private val TLS_13 = ConnectionSpec.Builder(true) .cipherSuites(*TLS13_CIPHER_SUITES.toTypedArray()) .tlsVersions(TlsVersion.TLS_1_3) .build() private val TLS_12 = ConnectionSpec.Builder(ConnectionSpec.RESTRICTED_TLS) .tlsVersions(TlsVersion.TLS_1_2) .build() private fun testClient( urls: List<String>, client: OkHttpClient, ) { try { for (url in urls) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/connection/RetryConnectionTest.kt
enabledProtocols = javaNames(*tlsVersions) } } private fun assertEnabledProtocols( socket: SSLSocket, vararg required: TlsVersion, ) { assertThat(socket.enabledProtocols.toList()).containsExactlyInAnyOrder(*javaNames(*required)) } private fun javaNames(vararg tlsVersions: TlsVersion) = tlsVersions.map { it.javaName }.toTypedArray()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CipherSuiteTest.kt
socket.supportedCipherSuites = arrayOf("TLS_A") socket.enabledCipherSuites = arrayOf("TLS_A") val connectionSpec = ConnectionSpec.Builder(true) .tlsVersions(TlsVersion.TLS_1_1, TlsVersion.TLS_1_2, TlsVersion.TLS_1_3) .cipherSuites("TLS_A") .build() applyConnectionSpec(connectionSpec, socket, false) assertArrayEquals(arrayOf("TLSv1.1", "TLSv1.2"), socket.enabledProtocols)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 8.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
} @Test fun socketPolicy() { val socketPolicy: SocketPolicy = SocketPolicy.KEEP_OPEN } @Test fun tlsVersion() { var tlsVersion: TlsVersion = TlsVersion.TLS_1_3 val javaName: String = tlsVersion.javaName tlsVersion = TlsVersion.forJavaName("") } @Test fun webSocket() { val webSocket = object : WebSocket {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 14:21:25 GMT 2024 - 46.5K bytes - Viewed (4) -
okhttp/src/test/java/okhttp3/SessionReuseTest.kt
@Flaky fun testSessionReuse(tlsVersion: String) { if (tlsVersion == TlsVersion.TLS_1_3.javaName) { assumeTrue(PlatformVersion.majorVersion != 8) } val sessionIds = mutableListOf<String>() enableTls() val tlsVersion = TlsVersion.forJavaName(tlsVersion) val spec = ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS) .tlsVersions(tlsVersion) .build()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/SocketChannelTest.kt
} data class TlsInstance( val provider: Provider, val protocol: Protocol, val tlsVersion: TlsVersion, val socketMode: SocketMode, val tlsExtensionMode: TlsExtensionMode, ) : SocketMode() { override fun toString(): String = "$provider/$protocol/$tlsVersion/$socketMode/$tlsExtensionMode" } enum class Provider { JSSE, CONSCRYPT, }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt
val proxy: Proxy = route.proxy() val inetSocketAddress: InetSocketAddress = route.socketAddress() } @Test @Disabled fun tlsVersion() { val tlsVersion: TlsVersion = TlsVersion.TLS_1_3 val javaName: String = tlsVersion.javaName() }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13.3K bytes - Viewed (0)