Class UserDetailsServiceImpl
- java.lang.Object
-
- com.netgrif.application.engine.auth.service.UserDetailsServiceImpl
-
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
- Direct Known Subclasses:
LdapUserDetailsService
@Service public class UserDetailsServiceImpl extends java.lang.Object implements org.springframework.security.core.userdetails.UserDetailsService
-
-
Field Summary
Fields Modifier and Type Field Description protected ILoginAttemptService
loginAttemptService
protected org.springframework.context.ApplicationEventPublisher
publisher
protected javax.servlet.http.HttpServletRequest
request
protected UserRepository
userRepository
-
Constructor Summary
Constructors Constructor Description UserDetailsServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getClientIP()
protected LoggedUser
getLoggedUser(java.lang.String email)
org.springframework.security.core.userdetails.UserDetails
loadUserByUsername(java.lang.String email)
-
-
-
Field Detail
-
userRepository
@Autowired protected UserRepository userRepository
-
publisher
@Autowired protected org.springframework.context.ApplicationEventPublisher publisher
-
loginAttemptService
@Autowired protected ILoginAttemptService loginAttemptService
-
request
@Autowired protected javax.servlet.http.HttpServletRequest request
-
-
Method Detail
-
loadUserByUsername
@Transactional(readOnly=true) public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(java.lang.String email) throws org.springframework.security.core.userdetails.UsernameNotFoundException
- Specified by:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
getLoggedUser
protected LoggedUser getLoggedUser(java.lang.String email) throws org.springframework.security.core.userdetails.UsernameNotFoundException
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
getClientIP
protected java.lang.String getClientIP()
-
-