Class DefaultTlsDirContextAuthenticationStrategy
java.lang.Object
org.springframework.ldap.core.support.AbstractTlsDirContextAuthenticationStrategy
org.springframework.ldap.core.support.DefaultTlsDirContextAuthenticationStrategy
- All Implemented Interfaces:
DirContextAuthenticationStrategy
public class DefaultTlsDirContextAuthenticationStrategy
extends AbstractTlsDirContextAuthenticationStrategy
Default implementation of TLS authentication. Applies
SIMPLE
authentication on top of the negotiated TLS session. Refer to
AbstractTlsDirContextAuthenticationStrategy
for configuration options.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyAuthentication
(LdapContext ctx, String userDn, String password) Apply the actual authentication to the specifiedLdapContext
.Methods inherited from class org.springframework.ldap.core.support.AbstractTlsDirContextAuthenticationStrategy
processContextAfterCreation, setHostnameVerifier, setShutdownTlsGracefully, setSslSocketFactory, setupEnvironment
-
Constructor Details
-
DefaultTlsDirContextAuthenticationStrategy
public DefaultTlsDirContextAuthenticationStrategy()
-
-
Method Details
-
applyAuthentication
protected void applyAuthentication(LdapContext ctx, String userDn, String password) throws NamingException Description copied from class:AbstractTlsDirContextAuthenticationStrategy
Apply the actual authentication to the specifiedLdapContext
. Typically, this will involve adding stuff to the environment.- Specified by:
applyAuthentication
in classAbstractTlsDirContextAuthenticationStrategy
- Parameters:
ctx
- theLdapContext
instance.userDn
- the user dn of the user to authenticate.password
- the password of the user to authenticate.- Throws:
NamingException
- if any error occurs.
-