Class JaasContextTest

java.lang.Object
org.apache.kafka.common.security.JaasContextTest

public class JaasContextTest extends Object
Tests parsing of SaslConfigs.SASL_JAAS_CONFIG property and verifies that the format and parsing are consistent with JAAS configuration files loaded by the JRE.
  • Constructor Details

    • JaasContextTest

      public JaasContextTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp() throws IOException
      Throws:
      IOException
    • tearDown

      @AfterEach public void tearDown() throws Exception
      Throws:
      Exception
    • testConfigNoOptions

      @Test public void testConfigNoOptions() throws Exception
      Throws:
      Exception
    • testControlFlag

      @Test public void testControlFlag() throws Exception
      Throws:
      Exception
    • testSingleOption

      @Test public void testSingleOption() throws Exception
      Throws:
      Exception
    • testMultipleOptions

      @Test public void testMultipleOptions() throws Exception
      Throws:
      Exception
    • testQuotedOptionValue

      @Test public void testQuotedOptionValue() throws Exception
      Throws:
      Exception
    • testQuotedOptionName

      @Test public void testQuotedOptionName() throws Exception
      Throws:
      Exception
    • testMultipleLoginModules

      @Test public void testMultipleLoginModules() throws Exception
      Throws:
      Exception
    • testMissingLoginModule

      @Test public void testMissingLoginModule() throws Exception
      Throws:
      Exception
    • testMissingControlFlag

      @Test public void testMissingControlFlag() throws Exception
      Throws:
      Exception
    • testMissingOptionValue

      @Test public void testMissingOptionValue() throws Exception
      Throws:
      Exception
    • testMissingSemicolon

      @Test public void testMissingSemicolon() throws Exception
      Throws:
      Exception
    • testNumericOptionWithoutQuotes

      @Test public void testNumericOptionWithoutQuotes() throws Exception
      Throws:
      Exception
    • testInvalidControlFlag

      @Test public void testInvalidControlFlag() throws Exception
      Throws:
      Exception
    • testDisallowedLoginModulesSystemProperty

      @Test public void testDisallowedLoginModulesSystemProperty() throws Exception
      Throws:
      Exception
    • testAllowedJNDIPropertiesInJaasConfig

      @Test public void testAllowedJNDIPropertiesInJaasConfig() throws Exception
      Throws:
      Exception
    • testNumericOptionWithQuotes

      @Test public void testNumericOptionWithQuotes() throws Exception
      Throws:
      Exception
    • testLoadForServerWithListenerNameOverride

      @Test public void testLoadForServerWithListenerNameOverride() throws IOException
      Throws:
      IOException
    • testLoadForServerWithListenerNameAndFallback

      @Test public void testLoadForServerWithListenerNameAndFallback() throws IOException
      Throws:
      IOException
    • testLoadForServerWithWrongListenerName

      @Test public void testLoadForServerWithWrongListenerName() throws IOException
      Throws:
      IOException
    • testListenerSaslJaasConfig

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