Class LdapAuthenticateCallbackHandler
java.lang.Object
io.confluent.security.auth.provider.ldap.LdapAuthenticateCallbackHandler
- All Implemented Interfaces:
Closeable,AutoCloseable,CallbackHandler,org.apache.kafka.common.security.auth.AuthenticateCallbackHandler,org.apache.kafka.common.security.auth.AuthorizationIdProvider
public class LdapAuthenticateCallbackHandler
extends Object
implements org.apache.kafka.common.security.auth.AuthorizationIdProvider, org.apache.kafka.common.security.auth.AuthenticateCallbackHandler, Closeable
LDAP authentication callback handler that can be used for simple username/password
authentication. Authentication may be performed using one of the following modes:
- Use broker's LDAP credentials to obtain DN for username and bind using (userDn, password). This will be an anonymous search if broker is not configured with credentials.
- Use broker's LDAP credentials to obtain (possibly encrypted) password for username and compare passwords.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LdapAuthenticateCallbackHandler
public LdapAuthenticateCallbackHandler()
-
-
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:
IOExceptionUnsupportedCallbackException
-
close
public void close()- Specified by:
closein interfaceorg.apache.kafka.common.security.auth.AuthenticateCallbackHandler- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
toString
-