Package io.jmix.ldap.userdetails
Class LdapUserRepository
java.lang.Object
io.jmix.ldap.userdetails.LdapUserRepository
- All Implemented Interfaces:
- UserRepository,- org.springframework.security.core.userdetails.UserDetailsService
Implementation of UserRepository that searches for users in LDAP.
- 
Constructor SummaryConstructorsConstructorDescriptionLdapUserRepository(JmixLdapUserSearch userSearch) LdapUserRepository(JmixLdapUserSearch userSearch, org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator) 
- 
Method SummaryModifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetailsReturns the built-in 'anonymous' user.List<? extends org.springframework.security.core.userdetails.UserDetails>getByUsernameLike(String substring) Returns the list of users whose username contains the given substring.org.springframework.security.core.userdetails.UserDetailsReturns the built-in 'system' user.org.springframework.security.core.userdetails.UserDetailsloadUserByUsername(String username) voidsetUserDetailsMapper(org.springframework.security.ldap.userdetails.UserDetailsContextMapper userDetailsMapper) voidsetUsernameAttribute(String usernameAttribute) 
- 
Constructor Details- 
LdapUserRepository
- 
LdapUserRepositorypublic LdapUserRepository(JmixLdapUserSearch userSearch, org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator) 
 
- 
- 
Method Details- 
loadUserByUsernamepublic org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException - Specified by:
- loadUserByUsernamein interface- org.springframework.security.core.userdetails.UserDetailsService
- Throws:
- org.springframework.security.core.userdetails.UsernameNotFoundException
 
- 
setUserDetailsMapperpublic void setUserDetailsMapper(org.springframework.security.ldap.userdetails.UserDetailsContextMapper userDetailsMapper) 
- 
getSystemUserpublic org.springframework.security.core.userdetails.UserDetails getSystemUser()Description copied from interface:UserRepositoryReturns the built-in 'system' user.- Specified by:
- getSystemUserin interface- UserRepository
 
- 
getAnonymousUserpublic org.springframework.security.core.userdetails.UserDetails getAnonymousUser()Description copied from interface:UserRepositoryReturns the built-in 'anonymous' user.- Specified by:
- getAnonymousUserin interface- UserRepository
 
- 
getByUsernameLikepublic List<? extends org.springframework.security.core.userdetails.UserDetails> getByUsernameLike(String substring) Description copied from interface:UserRepositoryReturns the list of users whose username contains the given substring.- Specified by:
- getByUsernameLikein interface- UserRepository
 
- 
setUsernameAttribute
 
-