Class AuthUserService
- java.lang.Object
-
- cz.zcu.students.cacha.bp_server.services.AuthUserService
-
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
@Service public class AuthUserService extends Object implements org.springframework.security.core.userdetails.UserDetailsService
Class represent service which is responsible for authorization operations
-
-
Constructor Summary
Constructors Constructor Description AuthUserService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description User
loadUserById(Long id)
Get user by his idorg.springframework.security.core.userdetails.UserDetails
loadUserByUsername(String username)
Gets user by his username
-
-
-
Method Detail
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
Gets user by his username- Specified by:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
- Parameters:
username
- username- Returns:
- user details of found user
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
- exception
-
-