Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for peerPrincipal (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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
      fun createFromSslSession() {
        val sslSession =
          FakeSSLSession(
    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)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Handshake.kt

      @get:JvmName("peerPrincipal")
      val peerPrincipal: Principal?
        get() = (peerCertificates.firstOrNull() as? X509Certificate)?.subjectX500Principal
    
      @JvmName("-deprecated_peerPrincipal")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "peerPrincipal"),
        level = DeprecationLevel.ERROR,
      )
      fun peerPrincipal(): Principal? = peerPrincipal
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Apr 05 09:48:10 GMT 2025
    - 6.6K bytes
    - Click Count (1)
  3. okhttp/src/jvmTest/kotlin/okhttp3/InsecureForHostTest.kt

        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`() {
        val heldCertificate =
          HeldCertificate
            .Builder()
            .addSubjectAlternativeName("example.com")
    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)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt

      override fun getPeerCertificateChain(): Array<X509Certificate> = delegate!!.peerCertificateChain
    
      @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
    
    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)
Back to Top