public class OAuthBearerServerLoginCallbackHandler extends Object implements org.apache.kafka.common.security.auth.AuthenticateCallbackHandler
CallbackHandler for the OAuthLoginModule of a Kafka Broker.
JAAS options are subject to validation by registered additional authentication callback handlers.
org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule Required
publicKeyPath="/tmp/key.pem"
This class should be explicitly set via the
listener.name.XXX.YYY.sasl.login.callback.handler.class configuration property
| Constructor and Description |
|---|
OAuthBearerServerLoginCallbackHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(Map<String,?> configs,
String saslMechanism,
List<AppConfigurationEntry> jaasConfigEntries) |
void |
handle(Callback[] callbacks) |
public OAuthBearerServerLoginCallbackHandler()
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
handle in interface CallbackHandlerUnsupportedCallbackExceptionpublic void close()
close in interface org.apache.kafka.common.security.auth.AuthenticateCallbackHandler