org.springframework.ldap.core.support
Class ExternalTlsDirContextAuthenticationStrategy
java.lang.Object
org.springframework.ldap.core.support.AbstractTlsDirContextAuthenticationStrategy
org.springframework.ldap.core.support.ExternalTlsDirContextAuthenticationStrategy
- All Implemented Interfaces:
- DirContextAuthenticationStrategy
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.
- Author:
- Mattias Hellborg Arthursson
- See Also:
AbstractTlsDirContextAuthenticationStrategy
,
AbstractContextSource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalTlsDirContextAuthenticationStrategy
public ExternalTlsDirContextAuthenticationStrategy()
applyAuthentication
protected void applyAuthentication(LdapContext ctx,
String userDn,
String password)
throws NamingException
- Description copied from class:
AbstractTlsDirContextAuthenticationStrategy
- Apply the actual authentication to the specified
LdapContext
. Typically, this will involve adding stuff to the environment.
- Specified by:
applyAuthentication
in class AbstractTlsDirContextAuthenticationStrategy
- Parameters:
ctx
- the LdapContext
instance.userDn
- the user dn of the user to authenticate.password
- the password of the user to authenticate.
- Throws:
NamingException
- if any error occurs.