@Service(value="blUserDetailsService") public class UserDetailsServiceImpl extends Object implements org.springframework.security.core.userdetails.UserDetailsService
Modifier and Type | Field and Description |
---|---|
protected CustomerService |
customerService |
protected RoleService |
roleService |
Constructor and Description |
---|
UserDetailsServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected List<org.springframework.security.core.GrantedAuthority> |
createGrantedAuthorities(List<CustomerRole> customerRoles) |
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String username) |
protected CustomerService customerService
protected RoleService roleService
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername
in interface org.springframework.security.core.userdetails.UserDetailsService
org.springframework.security.core.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException
protected List<org.springframework.security.core.GrantedAuthority> createGrantedAuthorities(List<CustomerRole> customerRoles)
Copyright © 2019. All rights reserved.