Class LdaptiveUserDetailsService
- java.lang.Object
-
- org.bremersee.security.core.userdetails.AbstractUserDetailsService
-
- org.bremersee.security.core.userdetails.LdaptiveUserDetailsService
-
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
public class LdaptiveUserDetailsService extends AbstractUserDetailsService implements org.springframework.security.core.userdetails.UserDetailsService
The ldaptive user details service.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description LdaptiveUserDetailsService(LdaptiveOperations ldaptiveOperations, String userBaseDn, String userFindOneFilter, org.ldaptive.SearchScope userFindOneSearchScope, String userAccountControlAttributeName, List<String> authorities, String authorityAttributeName, boolean authorityDn, Map<String,String> authorityMap, String authorityPrefix)
Instantiates a new ldaptive user details service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.userdetails.UserDetails
loadUserByUsername(String userName)
-
Methods inherited from class org.bremersee.security.core.userdetails.AbstractUserDetailsService
getUserDetailsLdapMapper, returnAttributes
-
-
-
-
Constructor Detail
-
LdaptiveUserDetailsService
public LdaptiveUserDetailsService(LdaptiveOperations ldaptiveOperations, String userBaseDn, String userFindOneFilter, org.ldaptive.SearchScope userFindOneSearchScope, String userAccountControlAttributeName, List<String> authorities, String authorityAttributeName, boolean authorityDn, Map<String,String> authorityMap, String authorityPrefix)
Instantiates a new ldaptive user details service.- Parameters:
ldaptiveOperations
- the ldaptive operationsuserBaseDn
- the user base dnuserFindOneFilter
- the user find one filteruserFindOneSearchScope
- the user find one search scopeuserAccountControlAttributeName
- the user account control attribute nameauthorities
- the authoritiesauthorityAttributeName
- the authority attribute nameauthorityDn
- the authority dnauthorityMap
- the authority mapauthorityPrefix
- the authority prefix
-
-
Method Detail
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String userName) throws org.springframework.security.core.userdetails.UsernameNotFoundException
- Specified by:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
-