public class DefaultTlsDirContextAuthenticationStrategy extends AbstractTlsDirContextAuthenticationStrategy
SIMPLE
authentication on top of the negotiated TLS session. Refer to
AbstractTlsDirContextAuthenticationStrategy
for configuration
options.AbstractTlsDirContextAuthenticationStrategy
,
AbstractContextSource
Constructor and Description |
---|
DefaultTlsDirContextAuthenticationStrategy() |
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, setupEnvironment
public DefaultTlsDirContextAuthenticationStrategy()
protected void applyAuthentication(LdapContext ctx, String userDn, String password) throws NamingException
AbstractTlsDirContextAuthenticationStrategy
LdapContext
. Typically, this will involve adding stuff to the environment.applyAuthentication
in class AbstractTlsDirContextAuthenticationStrategy
ctx
- 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.