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
FieldsModifier and TypeFieldDescriptionprotected UnconstrainedDataManagerprotected Metadataprotected UserRepository -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetailsloadUserByUsername(String username) @Nullable WebdavCredentialsloadWebdavCredentials(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:WebdavUserDetailsServiceLocates 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, theUserDetailsobject that comes back may have a username that is of a different case than what was actually requested..- Specified by:
loadWebdavCredentialsin 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:
loadUserByUsernamein interfaceorg.springframework.security.core.userdetails.UserDetailsService- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-