Class NettySaslServerAuthenticatorTest

java.lang.Object
org.apache.kafka.common.security.authenticator.NettySaslServerAuthenticatorTest

public class NettySaslServerAuthenticatorTest extends Object
  • Constructor Details

    • NettySaslServerAuthenticatorTest

      public NettySaslServerAuthenticatorTest()
  • Method Details

    • testSaslNettyTransportNeverUsesMTls

      @Test public void testSaslNettyTransportNeverUsesMTls()
    • testInternalClientConnection

      @ParameterizedTest @CsvSource({"PLAIN,true,false,true,true","PLAIN,false,false,true,true","OAUTHBEARER,true,true,true,true","OAUTHBEARER,true,false,true,true","OAUTHBEARER,false,true,true,true","OAUTHBEARER,false,false,true,true","PLAIN,true,false,false,true","PLAIN,false,false,false,true","OAUTHBEARER,true,true,false,true","OAUTHBEARER,true,false,false,true","OAUTHBEARER,false,true,false,true","OAUTHBEARER,false,false,false,true","PLAIN,true,false,true,false","PLAIN,false,false,true,false","OAUTHBEARER,true,true,true,false","OAUTHBEARER,true,false,true,false","OAUTHBEARER,false,true,true,false","OAUTHBEARER,false,false,true,false","PLAIN,true,false,false,false","PLAIN,false,false,false,false","OAUTHBEARER,true,true,false,false","OAUTHBEARER,true,false,false,false","OAUTHBEARER,false,true,false,false","OAUTHBEARER,false,false,false,false"}) public void testInternalClientConnection(String mechanism, boolean isInternal, boolean hasPublicIpInLat, boolean ipFilteringConfig, boolean findInternalTrafficOrPrivateNetwork) throws IOException
      Throws:
      IOException
    • testGetIpFromLat

      @Test public void testGetIpFromLat() throws IOException
      Throws:
      IOException
    • testNoIpFromLat

      @Test public void testNoIpFromLat() throws IOException
      Throws:
      IOException
    • testMtlsCredentialsIgnoredCallbackNotInvokedWhenNoClientCert

      @Test public void testMtlsCredentialsIgnoredCallbackNotInvokedWhenNoClientCert() throws Exception
      Throws:
      Exception
    • testMtlsCredentialsIgnoredCallbackNotInvokedWhenMtlsDisabled

      @Test public void testMtlsCredentialsIgnoredCallbackNotInvokedWhenMtlsDisabled() throws Exception
      Throws:
      Exception
    • testMtlsCredentialsIgnoredCallbackInvokedWhenClientCertPresent

      @Test public void testMtlsCredentialsIgnoredCallbackInvokedWhenClientCertPresent() throws Exception
      Throws:
      Exception