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(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 ExternalTlsDirContextAuthenticationStrategy()
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.