public class ExternalTlsDirContextAuthenticationStrategy extends AbstractTlsDirContextAuthenticationStrategy
DirContextAuthenticationStrategy for using TLS and external (SASL)
authentication. This implementation requires a client certificate to be
pointed out using system variables, as described here. Refer to AbstractTlsDirContextAuthenticationStrategy for
other configuration options.AbstractTlsDirContextAuthenticationStrategy,
AbstractContextSource| Constructor and Description |
|---|
ExternalTlsDirContextAuthenticationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyAuthentication(LdapContext ctx,
String userDn,
String password)
Apply the actual authentication to the specified
LdapContext
. |
processContextAfterCreation, setHostnameVerifier, setShutdownTlsGracefully, setSslSocketFactory, setupEnvironmentpublic ExternalTlsDirContextAuthenticationStrategy()
protected void applyAuthentication(LdapContext ctx, String userDn, String password) throws NamingException
AbstractTlsDirContextAuthenticationStrategyLdapContext
. Typically, this will involve adding stuff to the environment.applyAuthentication in class AbstractTlsDirContextAuthenticationStrategyctx - the LdapContext instance.userDn - the user dn of the user to authenticate.password - the password of the user to authenticate.NamingException - if any error occurs.