- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for localPrincipal (0.1 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
okhttp/src/jvmTest/kotlin/okhttp3/HandshakeTest.kt
assertThat(handshake.peerCertificates).containsExactly( serverCertificate.certificate, serverIntermediate.certificate, ) assertThat(handshake.localPrincipal).isNull() assertThat(handshake.peerPrincipal) .isEqualTo(serverCertificate.certificate.subjectX500Principal) assertThat(handshake.localCertificates).isEmpty() } @Test
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Handshake.kt
@get:JvmName("localPrincipal") val localPrincipal: Principal? get() = (localCertificates.firstOrNull() as? X509Certificate)?.subjectX500Principal @JvmName("-deprecated_localPrincipal") @Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "localPrincipal"), level = DeprecationLevel.ERROR, ) fun localPrincipal(): Principal? = localPrincipalCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Apr 05 09:48:10 GMT 2025 - 6.6K bytes - Click Count (1) -
okhttp/src/jvmTest/kotlin/okhttp3/RecordedResponse.kt
assertThat(handshake.cipherSuite).isNotNull() assertThat(handshake.peerPrincipal).isNotNull() assertThat(handshake.peerCertificates.size).isEqualTo(1) assertThat(handshake.localPrincipal).isNull() assertThat(handshake.localCertificates.size).isEqualTo(0) } /** * Asserts that the current response was redirected and returns the prior response. */
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 5.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/InsecureForHostTest.kt
assertThat(response.handshake!!.cipherSuite).isNotNull() assertThat(response.handshake!!.tlsVersion).isNotNull() assertThat(response.handshake!!.localCertificates).isEmpty() assertThat(response.handshake!!.localPrincipal).isNull() assertThat(response.handshake!!.peerCertificates).isEmpty() assertThat(response.handshake!!.peerPrincipal).isNull() } @Test fun `bad certificates host in insecureHosts fails with SSLException`() {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 4.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt
val peerPrincipal: Principal? = handshake.peerPrincipal() val localCertificates: List<Certificate> = handshake.localCertificates() val localPrincipal: Principal? = handshake.localPrincipal() } @Test @Disabled fun headers() { var headers: Headers = Headers.of("", "") headers = Headers.of(mapOf("" to "")) val size: Int = headers.size() }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 13.3K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt
@Throws(SSLPeerUnverifiedException::class) override fun getPeerPrincipal(): Principal = delegate!!.peerPrincipal override fun getLocalPrincipal(): Principal = delegate!!.localPrincipal override fun getCipherSuite(): String = delegate!!.cipherSuite override fun getProtocol(): String = delegate!!.protocol override fun getPeerHost(): String = delegate!!.peerHost
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.6K bytes - Click Count (0) -
docs/changelogs/upgrading_to_okhttp_4.md
* **Cookie**: domain, expiresAt, hostOnly, httpOnly, name, path, persistent, value * **Dispatcher**: executorService * **FormBody**: size * **Handshake**: cipherSuite, localCertificates, localPrincipal, peerCertificates, peerPrincipal, tlsVersion * **HandshakeCertificates**: keyManager, trustManager * **Headers**: size * **HeldCertificate**: certificate, keyPair * **HttpLoggingInterceptor**: level
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Feb 06 16:58:16 GMT 2022 - 10.9K bytes - Click Count (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
val handshake = request.handshake assertThat(handshake!!.tlsVersion).isNotNull() assertThat(handshake.cipherSuite).isNotNull() assertThat(handshake.localPrincipal).isNotNull() assertThat(handshake.localCertificates.size).isEqualTo(1) assertThat(handshake.peerPrincipal).isNull() assertThat(handshake.peerCertificates.size).isEqualTo(0) } @TestCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 03 13:16:34 GMT 2025 - 22.3K bytes - Click Count (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
assertThat(request.url.scheme).isEqualTo("https") val handshake = request.handshake assertThat(handshake!!.tlsVersion).isNotNull() assertThat(handshake.cipherSuite).isNotNull() assertThat(handshake.localPrincipal).isNotNull() assertThat(handshake.localCertificates.size).isEqualTo(1) assertThat(handshake.peerPrincipal).isNull() assertThat(handshake.peerCertificates.size).isEqualTo(0) } @Test
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Aug 03 22:38:00 GMT 2025 - 28K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
val peerPrincipal: Principal? = handshake.peerPrincipal val localCertificates: List<Certificate> = handshake.localCertificates val localPrincipal: Principal? = handshake.localPrincipal } @Test fun headers() { var headers: Headers = headersOf("", "") headers = mapOf("" to "").toHeaders() val get: String? = headers[""]Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 47K bytes - Click Count (0)