Class UserMayOrMayNotExistException2

  • All Implemented Interfaces:
    Serializable

    public class UserMayOrMayNotExistException2
    extends org.springframework.security.core.userdetails.UsernameNotFoundException
    Thrown from UserDetailsService.loadUserByUsername(String) to indicate that the underlying SecurityRealm is incapable of retrieving the information, and furthermore, the system cannot tell if such an user exists or not.

    This happens, for example, when the security realm is on top of the servlet implementation, there's no way of even knowing if an user of a given name exists or not.

    Since:
    2.266
    See Also:
    Serialized Form
    • Constructor Detail

      • UserMayOrMayNotExistException2

        public UserMayOrMayNotExistException2​(String msg)
      • UserMayOrMayNotExistException2

        public UserMayOrMayNotExistException2​(String msg,
                                              Throwable t)