Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for localPrincipal (0.23 sec)

  1. okhttp/src/main/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? = localPrincipal
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

        val response = call.execute()
        assertThat(response.handshake!!.peerPrincipal)
          .isEqualTo(X500Principal("CN=Local Host"))
        assertThat(response.handshake!!.localPrincipal)
          .isEqualTo(X500Principal("CN=Jethro Willis"))
        assertThat(response.body.string()).isEqualTo("abc")
      }
    
      @Test
      fun clientAuthForNeeds() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/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
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt

      }
    
      @Throws(SSLPeerUnverifiedException::class)
      override fun getPeerPrincipal(): Principal {
        return delegate!!.peerPrincipal
      }
    
      override fun getLocalPrincipal(): Principal {
        return delegate!!.localPrincipal
      }
    
      override fun getCipherSuite(): String {
        return delegate!!.cipherSuite
      }
    
      override fun getProtocol(): String {
        return delegate!!.protocol
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/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`() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/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.
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  7. 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)
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  8. okhttp/src/test/java/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()
      }
    
    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)
  9. mockwebserver/src/test/java/mockwebserver3/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)
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  10. 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
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
Back to top