use of org.apache.kafka.common.security.auth.AuthenticateCallbackHandler in project kafka by apache.
the class SaslChannelBuilder method createClientCallbackHandler.
private void createClientCallbackHandler(Map<String, ?> configs) {
@SuppressWarnings("unchecked") Class<? extends AuthenticateCallbackHandler> clazz = (Class<? extends AuthenticateCallbackHandler>) configs.get(SaslConfigs.SASL_CLIENT_CALLBACK_HANDLER_CLASS);
if (clazz == null)
clazz = clientCallbackHandlerClass();
AuthenticateCallbackHandler callbackHandler = Utils.newInstance(clazz);
saslCallbackHandlers.put(clientSaslMechanism, callbackHandler);
}
Aggregations