public class CompositeBearerValidatorCallbackHandler extends Object implements org.apache.kafka.common.security.auth.AuthenticateCallbackHandler
CallbackHandler that recognizes
CompositeBearerValidatorCallbackHandler
for validating Authentication Tokens issued by Confluent and external Identity Provider.
It uses TokenBearerValidatorCallbackHandler for validating Confluent issued tokens.
And OAuthBearerValidatorCallbackHandler for validating Identity Provder issued tokens.
This class must be explicitly set via the
listener.name.sasl_[plaintext|ssl].oauthbearer.sasl.server.callback.handler.class
broker configuration property.
| Constructor and Description |
|---|
CompositeBearerValidatorCallbackHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(Map<String,?> configs,
String saslMechanism,
List<AppConfigurationEntry> jaasConfigEntries) |
void |
handle(Callback[] callbacks) |
public CompositeBearerValidatorCallbackHandler()
public void configure(Map<String,?> configs, String saslMechanism, List<AppConfigurationEntry> jaasConfigEntries)
configure in interface org.apache.kafka.common.security.auth.AuthenticateCallbackHandlerpublic void handle(Callback[] callbacks) throws UnsupportedCallbackException, IOException
handle in interface CallbackHandlerUnsupportedCallbackExceptionIOExceptionpublic void close()
close in interface org.apache.kafka.common.security.auth.AuthenticateCallbackHandler