Class AppUserDetailsService
java.lang.Object
com.markvarga21.studentmanager.service.auth.security.AppUserDetailsService
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
@Service
public class AppUserDetailsService
extends Object
implements org.springframework.security.core.userdetails.UserDetailsService
The
AppUserDetailsService
class is used to implement
the UserDetailsService
interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetails
loadUserByUsername
(String username) This method is used to load the user by its username.
-
Constructor Details
-
AppUserDetailsService
public AppUserDetailsService()
-
-
Method Details
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException This method is used to load the user by its username.- Specified by:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
- Parameters:
username
- The username of the user.- Returns:
- The
UserDetails
object. - Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
- If the username is not found.
-