- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for localCertificates (0.12 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/HandshakeTest.kt
private val peerCertificates: Array<Certificate>?, private val localCertificates: Array<Certificate>?, ) : DelegatingSSLSession(null) { override fun getProtocol() = protocol override fun getCipherSuite() = cipherSuite override fun getPeerCertificates() = peerCertificates override fun getLocalCertificates() = localCertificates }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Handshake.kt
message = "moved to val", replaceWith = ReplaceWith(expression = "localCertificates"), level = DeprecationLevel.ERROR, ) fun localCertificates(): List<Certificate> = localCertificates /** Returns the local principle, or null if this peer is anonymous. */ @get:JvmName("localPrincipal") val localPrincipal: Principal? get() = (localCertificates.firstOrNull() as? X509Certificate)?.subjectX500Principal
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Apr 05 09:48:10 UTC 2025 - 6.6K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt
.isEqualTo(serverHandshake.localCertificates) val clientHandshake = clientHandshakeFuture.get() assertThat(listOf(serverCertificate.certificate, serverIntermediate.certificate)) .isEqualTo(clientHandshake.peerCertificates) assertThat(listOf(clientCertificate.certificate, clientIntermediate.certificate)) .isEqualTo(clientHandshake.localCertificates) } @Test fun keyManager() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 7.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/InsecureForHostTest.kt
assertThat(response.code).isEqualTo(200) 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() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 4.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt
val peerCertificates: List<Certificate> = handshake.peerCertificates() 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("", "")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 13.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RecordedResponse.kt
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. */ fun priorResponse(): RecordedResponse {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.3K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt
val localCertificates = readCertificateList(source) val tlsVersion = if (!source.exhausted()) { TlsVersion.forJavaName(source.readUtf8LineStrict()) } else { TlsVersion.SSL_3_0 } handshake = Handshake.get(tlsVersion, cipherSuite, peerCertificates, localCertificates) } else { handshake = null
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 26.9K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt
@Throws(SSLPeerUnverifiedException::class) override fun getPeerCertificates(): Array<Certificate>? = delegate!!.peerCertificates override fun getLocalCertificates(): Array<Certificate>? = delegate!!.localCertificates @Throws(SSLPeerUnverifiedException::class) override fun getPeerCertificateChain(): Array<X509Certificate> = delegate!!.peerCertificateChain @Throws(SSLPeerUnverifiedException::class)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.6K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
.assertLogMatch(Regex("""secureConnectStart""")) .assertLogMatch( Regex( """secureConnectEnd: Handshake\{tlsVersion=TLS_1_[23] cipherSuite=TLS_.* peerCertificates=\[CN=localhost] localCertificates=\[]\}""", ), ).assertLogMatch(Regex("""connectEnd: h2""")) .assertLogMatch(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 10.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
val cipherSuite: CipherSuite = handshake.cipherSuite val peerCertificates: List<Certificate> = handshake.peerCertificates 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()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 46.5K bytes - Viewed (0)