public interface KafkaPrincipalBuilder
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.Modifier and Type | Method and Description |
---|---|
KafkaPrincipal |
build(AuthenticationContext context)
Build a kafka principal from the authentication context.
|
KafkaPrincipal build(AuthenticationContext context)
context
- The authentication context (either SslAuthenticationContext
or
SaslAuthenticationContext
)KafkaPrincipalBuilder
.