Package com.im.df.security.ldap
Class ProxyLdapUserSearch
- java.lang.Object
-
- com.im.df.security.ldap.ProxyLdapUserSearch
-
- All Implemented Interfaces:
org.springframework.security.ldap.search.LdapUserSearch
public final class ProxyLdapUserSearch extends Object implements org.springframework.security.ldap.search.LdapUserSearch
ProxyLdapUserSearch
implementation that delegates to the supplied list ofLdapUserSearch
implementations. A user is authenticated if at least one of the delegates can authenticate the user. If none of the delegates can authenticate the userUsernameNotFoundException
is thrown. The delegates are asked in the same order as they were supplied to the constructor.- Since:
- 6.0
-
-
Constructor Summary
Constructors Constructor Description ProxyLdapUserSearch(List<? extends org.springframework.security.ldap.search.LdapUserSearch> delegates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.ldap.core.DirContextOperations
searchForUser(String username)
-
-
-
Constructor Detail
-
ProxyLdapUserSearch
public ProxyLdapUserSearch(List<? extends org.springframework.security.ldap.search.LdapUserSearch> delegates)
-
-
Method Detail
-
searchForUser
public org.springframework.ldap.core.DirContextOperations searchForUser(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
- Specified by:
searchForUser
in interfaceorg.springframework.security.ldap.search.LdapUserSearch
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
-