Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for KSession (0.17 sec)

  1. okhttp/src/test/java/okhttp3/SessionReuseTest.kt

        // System.setProperty("jdk.tls.client.enableSessionTicketExtension", "true")
        // System.setProperty("jdk.tls.server.enableSessionTicketExtension", "true")
    
        // IllegalStateException: Cannot resume session and session creation is disabled
        platform.assumeNotBouncyCastle()
      }
    
      @ParameterizedTest(name = "{displayName}({arguments})")
      @ValueSource(strings = ["TLSv1.2", "TLSv1.3"])
      @Flaky
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/JsseDebugLogging.kt

              message == "No session to resume." -> Type.Handshake
              message.startsWith("Consuming ") -> Type.Handshake
              message.startsWith("Produced ") -> Type.Handshake
              message.startsWith("Negotiated ") -> Type.Handshake
              message.startsWith("Found resumable session") -> Type.Handshake
              message.startsWith("Resuming session") -> Type.Handshake
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/platform/ConscryptPlatform.kt

      }
    
      internal object DisabledHostnameVerifier : ConscryptHostnameVerifier {
        fun verify(
          hostname: String?,
          session: SSLSession?,
        ): Boolean {
          return true
        }
    
        override fun verify(
          certs: Array<out X509Certificate>?,
          hostname: String?,
          session: SSLSession?,
        ): Boolean {
          return true
        }
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

          call: Call,
          connection: Connection,
        ) {
          if (random != null) {
            val sslSocket = connection.socket() as SSLSocket
            val session = sslSocket.session
    
            val masterSecretHex =
              session.masterSecret?.encoded?.toByteString()
                ?.hex()
    
            if (masterSecretHex != null) {
              val keyLog = "CLIENT_RANDOM $random $masterSecretHex"
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (1)
  5. samples/slack/src/main/java/okhttp3/slack/RtmSession.java

     */
    package okhttp3.slack;
    
    import java.io.Closeable;
    import java.io.IOException;
    import okhttp3.WebSocket;
    import okhttp3.Response;
    import okhttp3.WebSocketListener;
    
    /** A realtime messaging session. */
    public final class RtmSession extends WebSocketListener implements Closeable {
      private final SlackApi slackApi;
    
      /** Guarded by this. */
      private WebSocket webSocket;
    
      public RtmSession(SlackApi slackApi) {
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Nov 19 20:16:58 GMT 2016
    - 2.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CacheTest.kt

        val sink = GzipSink(result).buffer()
        sink.writeUtf8(data)
        sink.close()
        return result
      }
    
      companion object {
        private val NULL_HOSTNAME_VERIFIER = HostnameVerifier { hostname, session -> true }
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

      @SuppressLint("NewApi")
      @IgnoreJRERequirement // This function is overridden to require API >= 24.
      open fun getHandshakeServerNames(sslSocket: SSLSocket): List<String> {
        val session = sslSocket.session as? ExtendedSSLSession ?: return listOf()
        return session.requestedServerNames.mapNotNull { (it as? SNIHostName)?.asciiName }
      }
    
      @Throws(IOException::class)
      open fun connectSocket(
        socket: Socket,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
  8. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/RecordedRequest.kt

        this.bodySize = bodySize
        this.body = body
        this.sequenceNumber = sequenceNumber
        this.failure = failure
    
        if (socket is SSLSocket) {
          try {
            this.handshake = socket.session.handshake()
          } catch (e: IOException) {
            throw IllegalArgumentException(e)
          }
        } else {
          this.handshake = null
        }
    
        if (requestLine.isNotEmpty()) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (2)
  9. okhttp/src/test/java/okhttp3/JSSETest.kt

                    call: Call,
                    connection: Connection,
                  ) {
                    val sslSocket = connection.socket() as SSLSocket
    
                    sessionIds.add(sslSocket.session.id.toByteString().hex())
                  }
                },
              ),
            )
            .build()
    
        val request = Request.Builder().url("https://facebook.com/robots.txt").build()
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt

       * verification is a black box.
       */
      @Test
      fun skipsWhenHostnameVerifierUsed() {
        val verifier = HostnameVerifier { name: String?, session: SSLSession? -> true }
        client = client.newBuilder().hostnameVerifier(verifier).build()
        server.enqueue(MockResponse())
        server.enqueue(MockResponse())
        assert200Http2Response(execute(url), server.hostName)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 18.7K bytes
    - Viewed (0)
Back to top