Class 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.UserDetailsService
    This implements User Details Service that allows us to authenticate a user.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.security.core.userdetails.UserDetails loadUserByUsername​(java.lang.String username)
      Verifies that the user is correct and if so creates the authenticated user
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SecurityUserServiceImpl

        public SecurityUserServiceImpl()
    • Method Detail

      • loadUserByUsername

        @Transactional
        public org.springframework.security.core.userdetails.UserDetails loadUserByUsername​(java.lang.String username)
                                                                                     throws ResourceNotFoundException
        Verifies that the user is correct and if so creates the authenticated user
        Specified by:
        loadUserByUsername in interface org.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