Class UserDetailsServiceImpl

  • All Implemented Interfaces:
    org.springframework.security.core.userdetails.UserDetailsService

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.security.core.userdetails.UserDetails loadUserByUsername​(java.lang.String email)
      Carrega um usuário pelo seu email
      • Methods inherited from class java.lang.Object

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

      • UserDetailsServiceImpl

        public UserDetailsServiceImpl()
    • Method Detail

      • loadUserByUsername

        public org.springframework.security.core.userdetails.UserDetails loadUserByUsername​(java.lang.String email)
                                                                                     throws org.springframework.security.core.userdetails.UsernameNotFoundException
        Carrega um usuário pelo seu email
        Specified by:
        loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsService
        Parameters:
        email - email do usuario
        Returns:
        UserDetailsImpl() Detalhes de usuario
        Throws:
        org.springframework.security.core.userdetails.UsernameNotFoundException - email não encontrado