Class SslPrincipalMapperTest

java.lang.Object
org.apache.kafka.common.security.ssl.SslPrincipalMapperTest

public class SslPrincipalMapperTest extends Object
  • Constructor Details

    • SslPrincipalMapperTest

      public SslPrincipalMapperTest()
  • Method Details

    • testValidRules

      @Test public void testValidRules()
    • testInvalidRules

      @Test public void testInvalidRules()
    • testSslPrincipalMapper

      @Test public void testSslPrincipalMapper() throws Exception
      Throws:
      Exception
    • testSanUriRuleMatchesFirstUri

      @Test public void testSanUriRuleMatchesFirstUri() throws Exception
      Throws:
      Exception
    • testSanUriRuleMatchesLaterUriWhenFirstDoesNotMatch

      @Test public void testSanUriRuleMatchesLaterUriWhenFirstDoesNotMatch() throws Exception
      Throws:
      Exception
    • testMixedOrderSanUriWinsByOrder

      @Test public void testMixedOrderSanUriWinsByOrder() throws Exception
      Throws:
      Exception
    • testMixedOrderSanUriWinsByRegexMatch

      @Test public void testMixedOrderSanUriWinsByRegexMatch() throws Exception
      Throws:
      Exception
    • testMixedOrderSubjectDnWinsByOrder

      @Test public void testMixedOrderSubjectDnWinsByOrder() throws Exception
      Throws:
      Exception
    • testMixedOrderSubjectDnWinsByRegexMatch

      @Test public void testMixedOrderSubjectDnWinsByRegexMatch() throws Exception
      Throws:
      Exception
    • testMixedOrderDefaultWinsWhenBothTargetsMiss

      @Test public void testMixedOrderDefaultWinsWhenBothTargetsMiss() throws Exception
      Throws:
      Exception
    • testMixedOrderCatchAllSanUriRuleMatchesFirstUriWithNoDefault

      @Test public void testMixedOrderCatchAllSanUriRuleMatchesFirstUriWithNoDefault() throws Exception
      Throws:
      Exception
    • testMixedOrderNoRuleMatchesThrows

      @Test public void testMixedOrderNoRuleMatchesThrows() throws Exception
      Throws:
      Exception
    • testMultipleRulesPerContiguousBlockAllowed

      @Test public void testMultipleRulesPerContiguousBlockAllowed() throws Exception
      Throws:
      Exception
    • testDefaultNotLastMatchesFirstIgnoringLaterRule

      @Test public void testDefaultNotLastMatchesFirstIgnoringLaterRule() throws Exception
      Throws:
      Exception
    • testOneArgGetNameStillDelegatesToTwoArgOverload

      @Test public void testOneArgGetNameStillDelegatesToTwoArgOverload() throws Exception
      Throws:
      Exception
    • testSanUriRuleCaseFlags

      @Test public void testSanUriRuleCaseFlags() throws Exception
      Throws:
      Exception
    • testNullDnMatchesSanUriRuleInsteadOfThrowing

      @Test public void testNullDnMatchesSanUriRuleInsteadOfThrowing() throws Exception
      Throws:
      Exception
    • testNullDnWithNoMatchingSanUriThrowsNoMatchingRuleNotNpe

      @Test public void testNullDnWithNoMatchingSanUriThrowsNoMatchingRuleNotNpe() throws Exception
      Throws:
      Exception
    • testNullDnWithEmptySanUrisThrowsNoMatchingRuleNotNpe

      @Test public void testNullDnWithEmptySanUrisThrowsNoMatchingRuleNotNpe() throws Exception
      Throws:
      Exception
    • testRulesSplitting

      @Test public void testRulesSplitting()
    • testCommaWithWhitespace

      @Test public void testCommaWithWhitespace() throws Exception
      Throws:
      Exception
    • testNeedBackslashWhenReadingFromConfig

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