Interface KafkaPrincipalBuilder
public interface KafkaPrincipalBuilder
Pluggable principal builder interface which supports both SSL authentication through
SslAuthenticationContext and SASL through SaslAuthenticationContext. Note that the Configurable and Closeable interfaces are respected if implemented. Additionally, implementations must provide a default no-arg constructor. Note that custom implementations of KafkaPrincipalBuilder must also implement KafkaPrincipalSerde, otherwise brokers will not be able to forward requests to the controller.Method Summary
Modifier and TypeMethodDescriptionbuild(AuthenticationContext context) Build a kafka principal from the authentication context.
Method Details
build
Build a kafka principal from the authentication context.- Parameters:
context- The authentication context (eitherSslAuthenticationContextorSaslAuthenticationContext)- Returns:
- The built principal which may provide additional enrichment through a subclass of
KafkaPrincipalBuilder.