Class DefaultKafkaPrincipalBuilderTest

java.lang.Object
org.apache.kafka.common.security.auth.DefaultKafkaPrincipalBuilderTest

public class DefaultKafkaPrincipalBuilderTest extends Object
  • Constructor Details

    • DefaultKafkaPrincipalBuilderTest

      public DefaultKafkaPrincipalBuilderTest()
  • Method Details

    • testReturnAnonymousPrincipalForPlaintext

      @Test public void testReturnAnonymousPrincipalForPlaintext() throws Exception
      Throws:
      Exception
    • testParsingWithBrokenSchema

      @Property(tries=5000) public void testParsingWithBrokenSchema(@ForAll @AlphaChars @AlphaChars String principalType, @ForAll String username, @ForAll boolean tokenAuthenticated)
    • testUseSessionPeerPrincipalForSsl

      @Test public void testUseSessionPeerPrincipalForSsl() throws Exception
      Throws:
      Exception
    • testPrincipalIfSSLPeerIsNotAuthenticated

      @Test public void testPrincipalIfSSLPeerIsNotAuthenticated() throws Exception
      Throws:
      Exception
    • testPrincipalWithSslPrincipalMapper

      @Test public void testPrincipalWithSslPrincipalMapper() throws Exception
      Throws:
      Exception
    • testPrincipalWithSanUriRule

      @Test public void testPrincipalWithSanUriRule() throws Exception
      Throws:
      Exception
    • testPrincipalFallsBackToDnRuleWhenSanUriDoesNotMatch

      @Test public void testPrincipalFallsBackToDnRuleWhenSanUriDoesNotMatch() throws Exception
      Throws:
      Exception
    • testPrincipalFallsBackCleanlyWhenPeerCertificatesEmpty

      @Test public void testPrincipalFallsBackCleanlyWhenPeerCertificatesEmpty() throws Exception
      Throws:
      Exception
    • testPrincipalFallsBackCleanlyWhenPeerCertificateIsNotX509

      @Test public void testPrincipalFallsBackCleanlyWhenPeerCertificateIsNotX509() throws Exception
      Throws:
      Exception
    • testPrincipalFallsBackCleanlyWhenPeerCertificatesIsNull

      @Test public void testPrincipalFallsBackCleanlyWhenPeerCertificatesIsNull() throws Exception
      Throws:
      Exception
    • testAnonymousWhenGetPeerCertificatesThrowsUnverified

      @Test public void testAnonymousWhenGetPeerCertificatesThrowsUnverified() throws Exception
      Throws:
      Exception
    • testPrincipalBuilderScram

      @Test public void testPrincipalBuilderScram() throws Exception
      Throws:
      Exception
    • testPrincipalBuilderGssapi

      @Test public void testPrincipalBuilderGssapi() throws Exception
      Throws:
      Exception
    • testPrincipalBuilderSerde

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