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(javax.naming.ldap.LdapContext ctx,
java.lang.String userDn,
java.lang.String password)
Apply the actual authentication to the specified
LdapContext
. |
processContextAfterCreation, setHostnameVerifier, setShutdownTlsGracefully, setSslSocketFactory, setupEnvironment
public DefaultTlsDirContextAuthenticationStrategy()
protected void applyAuthentication(javax.naming.ldap.LdapContext ctx, java.lang.String userDn, java.lang.String password) throws javax.naming.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.javax.naming.NamingException
- if any error occurs.