Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for localCertificates (0.14 sec)

  1. okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. okhttp/src/main/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt

      override fun getPeerCertificates(): Array<Certificate>? {
        return delegate!!.peerCertificates
      }
    
      override fun getLocalCertificates(): Array<Certificate>? {
        return delegate!!.localCertificates
      }
    
      @Throws(SSLPeerUnverifiedException::class)
      override fun getPeerCertificateChain(): Array<X509Certificate> {
        return delegate!!.peerCertificateChain
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top