Class UserDetailsServiceImpl

  • All Implemented Interfaces:
    org.springframework.security.core.userdetails.UserDetailsService
    Direct Known Subclasses:
    LdapUserDetailsService

    @Service
    public class UserDetailsServiceImpl
    extends java.lang.Object
    implements org.springframework.security.core.userdetails.UserDetailsService
    • Field Detail

      • publisher

        @Autowired
        protected org.springframework.context.ApplicationEventPublisher publisher
      • request

        @Autowired
        protected javax.servlet.http.HttpServletRequest request
    • Constructor Detail

      • UserDetailsServiceImpl

        public UserDetailsServiceImpl()
    • Method Detail

      • loadUserByUsername

        @Transactional(readOnly=true)
        public org.springframework.security.core.userdetails.UserDetails loadUserByUsername​(java.lang.String email)
                                                                                     throws org.springframework.security.core.userdetails.UsernameNotFoundException
        Specified by:
        loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsService
        Throws:
        org.springframework.security.core.userdetails.UsernameNotFoundException
      • getLoggedUser

        protected LoggedUser getLoggedUser​(java.lang.String email)
                                    throws org.springframework.security.core.userdetails.UsernameNotFoundException
        Throws:
        org.springframework.security.core.userdetails.UsernameNotFoundException
      • getClientIP

        protected java.lang.String getClientIP()