Class Tls13SelectorTest


@Tag("bazel:shard_count:2") public class Tls13SelectorTest extends SslSelectorTest
  • Constructor Details

    • Tls13SelectorTest

      public Tls13SelectorTest()
  • Method Details

    • testKeyUpdate

      @Test public void testKeyUpdate() throws Exception
      TLS 1.3 has a post-handshake key and IV update, which will update the sending and receiving keys for one side of the connection. Key Usage Limits will trigger an update when the algorithm limits are reached, but the default value is too large (2^37 bytes of plaintext data) for a unit test. This value can be overridden via the security property `jdk.tls.keyLimits`, but that's also difficult to achieve in a unit test. Applications can also trigger an update by calling `SSLSocket.startHandshake()` or `SSLEngine.beginHandshake()` (this would trigger `renegotiation` with TLS 1.2) and that's the approach we take here.
      Throws:
      Exception