Package com.wilfredmorgan.api.services
Class SecurityUserServiceImpl
- java.lang.Object
-
- com.wilfredmorgan.api.services.SecurityUserServiceImpl
-
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
@Service("securityUserService") public class SecurityUserServiceImpl extends java.lang.Object implements org.springframework.security.core.userdetails.UserDetailsServiceThis implements User Details Service that allows us to authenticate a user.
-
-
Constructor Summary
Constructors Constructor Description SecurityUserServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.userdetails.UserDetailsloadUserByUsername(java.lang.String username)Verifies that the user is correct and if so creates the authenticated user
-
-
-
Method Detail
-
loadUserByUsername
@Transactional public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(java.lang.String username) throws ResourceNotFoundExceptionVerifies that the user is correct and if so creates the authenticated user- Specified by:
loadUserByUsernamein interfaceorg.springframework.security.core.userdetails.UserDetailsService- Parameters:
username- The user name we are look for- Returns:
- a security user detail that is now an authenticated user
- Throws:
ResourceNotFoundException- if the user name is not found
-
-