Class TokenBearerValidatorCallbackHandler
java.lang.Object
io.confluent.kafka.server.plugins.auth.token.TokenBearerValidatorCallbackHandler
- All Implemented Interfaces:
CallbackHandler,org.apache.kafka.common.security.auth.AuthenticateCallbackHandler
public class TokenBearerValidatorCallbackHandler
extends Object
implements org.apache.kafka.common.security.auth.AuthenticateCallbackHandler
A
CallbackHandler that recognizes
TokenBearerValidatorCallbackHandler
for validating a Authentication Tokens issued by Confluent.
It verifies the signature of a JWT through a public key it reads from a file path, set in the JAAS config.
This class must be explicitly set via the
listener.name.sasl_[plaintext|ssl].oauthbearer.sasl.server.callback.handler.class
broker configuration property.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TokenBearerValidatorCallbackHandler
public TokenBearerValidatorCallbackHandler()
-
-
Method Details
-
configure
public void configure(Map<String, ?> configs, String saslMechanism, List<AppConfigurationEntry> jaasConfigEntries) - Specified by:
configurein interfaceorg.apache.kafka.common.security.auth.AuthenticateCallbackHandler
-
handle
- Specified by:
handlein interfaceCallbackHandler- Throws:
UnsupportedCallbackException
-
close
public void close()- Specified by:
closein interfaceorg.apache.kafka.common.security.auth.AuthenticateCallbackHandler
-