Class UserMayOrMayNotExistException2

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.core.AuthenticationException
org.springframework.security.core.userdetails.UsernameNotFoundException
hudson.security.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:
  • Constructor Details

    • UserMayOrMayNotExistException2

      public UserMayOrMayNotExistException2(String msg)
    • UserMayOrMayNotExistException2

      public UserMayOrMayNotExistException2(String msg, Throwable t)