Package io.jmix.webdav.service.impl
Class WebdavUserDetailsServiceImpl
java.lang.Object
io.jmix.webdav.service.impl.WebdavUserDetailsServiceImpl
- All Implemented Interfaces:
WebdavUserDetailsService
,org.springframework.security.core.userdetails.UserDetailsService
@Component("webdav_WebdavUserDetailsService")
public class WebdavUserDetailsServiceImpl
extends Object
implements WebdavUserDetailsService
-
Field Summary
Modifier and TypeFieldDescriptionprotected UnconstrainedDataManager
protected Metadata
protected UserRepository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetails
loadUserByUsername
(String username) @Nullable WebdavCredentials
loadWebdavCredentials
(String username) Locates the user based on the username.
-
Field Details
-
userRepository
-
dataManager
-
metadata
-
-
Constructor Details
-
WebdavUserDetailsServiceImpl
public WebdavUserDetailsServiceImpl()
-
-
Method Details
-
loadWebdavCredentials
Description copied from interface:WebdavUserDetailsService
Locates the user based on the username. In the actual implementation, the search may possibly be case sensitive, or case insensitive depending on how the implementation instance is configured. In this case, theUserDetails
object that comes back may have a username that is of a different case than what was actually requested..- Specified by:
loadWebdavCredentials
in interfaceWebdavUserDetailsService
- Parameters:
username
- the username identifying the user whose data is required.- Returns:
- a fully populated user record (never
null
)
-
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
-