- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,274 for arrayOf (0.06 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionSpecTest.kt
socket.enabledCipherSuites = arrayOf( CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256.javaName, ) socket.enabledProtocols = arrayOf( TlsVersion.TLS_1_2.javaName, TlsVersion.TLS_1_1.javaName, ) assertThat(tlsSpec.isCompatible(socket)).isTrue() socket.enabledProtocols = arrayOf(TlsVersion.TLS_1_1.javaName)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 14.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CipherSuiteTest.kt
assertArrayEquals(arrayOf("TLS_A", "TLS_C"), socket.enabledCipherSuites) } @Test fun applyIntersectionRetainsSslPrefixes() { val socket = FakeSslSocket() socket.enabledProtocols = arrayOf("TLSv1") socket.supportedCipherSuites = arrayOf("TLS_A", "TLS_B", "TLS_C", "TLS_D", "TLS_E") socket.enabledCipherSuites = arrayOf("TLS_A", "TLS_B", "TLS_C") val connectionSpec =
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 8.2K bytes - Viewed (0) -
android-test/src/test/kotlin/okhttp/android/test/ShadowDnsResolver.kt
) { responder(Request(network, domain, nsType, flags, callback)) } companion object { @Implementation @JvmStatic fun getInstance(): DnsResolver = Shadow.newInstance(DnsResolver::class.java, arrayOf(), arrayOf()) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Dec 30 23:28:56 UTC 2024 - 1.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HandshakeTest.kt
} } class FakeSSLSession( private val protocol: String, private val cipherSuite: String, private val peerCertificates: Array<Certificate>?, private val localCertificates: Array<Certificate>?, ) : DelegatingSSLSession(null) { override fun getProtocol() = protocol override fun getCipherSuite() = cipherSuite
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.2K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt
val keyManager = keyManagerFactory.keyManagers[0] as X509ExtendedKeyManager val trustManager = Platform.get().platformTrustManager() val sslContext = SSLContext.getInstance("TLS") sslContext.init(arrayOf(keyManager), arrayOf(trustManager), SecureRandom()) val client = OkHttpClient .Builder() .sslSocketFactory(sslContext.socketFactory, trustManager) .build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 4.2K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt
fun sslContext(): SSLContext = Platform.get().newSSLContext().apply { init(arrayOf<KeyManager>(keyManager), arrayOf<TrustManager>(trustManager), SecureRandom()) } class Builder { private var heldCertificate: HeldCertificate? = null private var intermediates: Array<X509Certificate>? = null private val trustedCertificates = mutableListOf<X509Certificate>()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 8.4K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
override fun checkClientTrusted( chain: Array<out X509Certificate>?, authType: String?, ) {} override fun checkServerTrusted( chain: Array<out X509Certificate>?, authType: String?, ) {} override fun getAcceptedIssuers(): Array<X509Certificate> = arrayOf() } val sslContext =
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 02 14:12:28 UTC 2025 - 29K bytes - Viewed (0) -
okcurl/src/main/kotlin/okhttp3/curl/Main.kt
override fun checkClientTrusted( chain: Array<X509Certificate>, authType: String, ) { } override fun checkServerTrusted( chain: Array<X509Certificate>, authType: String, ) { } override fun getAcceptedIssuers(): Array<X509Certificate> = arrayOf() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CommonRequestBodyTest.kt
import okhttp3.RequestBody.Companion.toRequestBody class CommonRequestBodyTest { @Test fun correctContentType() { val body = "Body" val requestBody = body.toRequestBody(MediaType("text/plain", "text", "plain", arrayOf())) val contentType = requestBody.contentType()!! assertThat(contentType.mediaType).isEqualTo("text/plain; charset=utf-8") assertThat(contentType.parameter("charset")).isEqualTo("utf-8") }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 1.1K bytes - Viewed (0) -
okhttp/src/jvmMain/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt
/** The protocol the server selected. */ var selected: String? = null @Throws(Throwable::class) override fun invoke( proxy: Any, method: Method, args: Array<Any>?, ): Any? { val callArgs = args ?: arrayOf<Any?>() val methodName = method.name val returnType = method.returnType if (methodName == "supports" && Boolean::class.javaPrimitiveType == returnType) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 6.1K bytes - Viewed (0)