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
DirContextAuthenticationStrategyfor using TLS and external (SASL) authentication. This implementation requires a client certificate to be pointed out using system variables, as described here. Refer toAbstractTlsDirContextAuthenticationStrategyfor other configuration options.
-
-
Constructor Summary
Constructors Constructor Description ExternalTlsDirContextAuthenticationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyAuthentication(javax.naming.ldap.LdapContext ctx, java.lang.String userDn, java.lang.String password)Apply the actual authentication to the specifiedLdapContext.-
Methods inherited from class org.springframework.ldap.core.support.AbstractTlsDirContextAuthenticationStrategy
processContextAfterCreation, setHostnameVerifier, setShutdownTlsGracefully, setSslSocketFactory, setupEnvironment
-
-
-
-
Method Detail
-
applyAuthentication
protected void applyAuthentication(javax.naming.ldap.LdapContext ctx, java.lang.String userDn, java.lang.String password) throws javax.naming.NamingExceptionDescription copied from class:AbstractTlsDirContextAuthenticationStrategyApply the actual authentication to the specifiedLdapContext. Typically, this will involve adding stuff to the environment.- Specified by:
applyAuthenticationin classAbstractTlsDirContextAuthenticationStrategy- Parameters:
ctx- theLdapContextinstance.userDn- the user dn of the user to authenticate.password- the password of the user to authenticate.- Throws:
javax.naming.NamingException- if any error occurs.
-
-