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 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 interface org.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.