Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 104 for handshake (0.07 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt

        override val timestampNs: Long,
        override val call: Call,
      ) : CallEvent()
    
      data class SecureConnectEnd(
        override val timestampNs: Long,
        override val call: Call,
        val handshake: Handshake?,
      ) : CallEvent() {
        override fun closes(event: CallEvent): Boolean = event is SecureConnectStart && call == event.call
      }
    
      data class ConnectionAcquired(
        override val timestampNs: Long,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Oct 06 13:40:20 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/CertificatePinning.kt

            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          for (certificate in response.handshake!!.peerCertificates) {
            println(CertificatePinner.pin(certificate))
          }
        }
      }
    }
    
    fun main() {
      CertificatePinning().run()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  3. docs/pt/docs/deployment/https.md

    <img src="/img/deployment/https/https01.drawio.svg">
    
    ### Início do Handshake TLS { #tls-handshake-start }
    
    O navegador então irá comunicar-se com esse endereço IP na porta 443 (a porta HTTPS).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 14.8K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt

        if (!platform.isConscrypt()) {
          assertThat(event.exception.message).isIn(
            "Unexpected handshake message: client_hello",
            "(unexpected_message) Unexpected handshake message: client_hello",
          )
        }
      }
    
      @Test
      @Throws(IOException::class)
      fun multipleConnectsForSingleCall() {
        enableTls()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 18:33:48 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/CertificatePinning.java

            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          for (Certificate certificate : response.handshake().peerCertificates()) {
            System.out.println(CertificatePinner.pin(certificate));
          }
        }
      }
    
      public static void main(String... args) throws Exception {
        new CertificatePinning().run();
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Dec 08 21:30:01 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/spnego/SpnegoExceptionTest.java

        }
    
        @Test
        @DisplayName("Should create SpnegoException with message and cause")
        void testWithMessageAndCause() {
            // Given
            String message = "SPNEGO handshake error";
            RuntimeException cause = new RuntimeException("root cause");
    
            // When
            SpnegoException ex = new SpnegoException(message, cause);
    
            // Then
            assertNotNull(ex);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_3x.md

        application code that creates challenges.
    
     *  New: The `TlsVersion` of a `Handshake` is now non-null. If you are calling
        `Handshake.get()` with a null TLS version, you must instead now provide a
        non-null `TlsVersion`. Cache responses persisted prior to OkHttp 3.0 did not
        store a TLS version; for these unknown values the handshake is defaulted to
        `TlsVersion.SSL_3_0`.
    
     *  New: Upgrade to Okio 1.13.0.
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

            Response
              .Builder()
              .request(request)
              .protocol(Protocol.HTTP_1_1)
              .code(200)
              .message("OK")
              .build()
          val handshake =
            Handshake.get(
              tlsVersion = TlsVersion.TLS_1_3,
              cipherSuite = CipherSuite.TLS_AES_128_GCM_SHA256,
              peerCertificates = listOf(),
              localCertificates = listOf(),
            )
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.5K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

        val cipherSuite = response1.handshake!!.cipherSuite
        val localCerts = response1.handshake!!.localCertificates
        val serverCerts = response1.handshake!!.peerCertificates
        val peerPrincipal = response1.handshake!!.peerPrincipal
        val localPrincipal = response1.handshake!!.localPrincipal
        val response2 = client.newCall(request).execute() // Cached!
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 116.8K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheStrategy.kt

          // No cached response.
          if (cacheResponse == null) {
            return CacheStrategy(request, null)
          }
    
          // Drop the cached response if it's missing a required handshake.
          if (request.isHttps && cacheResponse.handshake == null) {
            return CacheStrategy(request, null)
          }
    
          // If this response shouldn't have been stored, it should never be used as a response source.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12K bytes
    - Viewed (0)
Back to top