Class SslVersionsTransportLayerTest

java.lang.Object
org.apache.kafka.common.network.SslVersionsTransportLayerTest

public class SslVersionsTransportLayerTest extends Object
Tests for the SSL transport layer. Checks different versions of the protocol usage on the server and client.
  • Constructor Details

    • SslVersionsTransportLayerTest

      public SslVersionsTransportLayerTest()
  • Method Details

    • parameters

      public static Stream<org.junit.jupiter.params.provider.Arguments> parameters()
    • testTlsDefaults

      @ParameterizedTest(name="testTlsDefaults(tlsServerProtocol = {0}, tlsClientProtocol = {1})") @MethodSource("parameters") public void testTlsDefaults(List<String> serverProtocols, List<String> clientProtocols) throws Exception
      Tests that connection success with the default TLS version. Note that debug mode for javax.net.ssl can be enabled via System.setProperty("javax.net.debug", "ssl:handshake");
      Throws:
      Exception