Package org.apache.shiro.authc
Class LockedAccountException
-
-
-
-
- org.apache.shiro.ShiroException
-
- org.apache.shiro.authc.AuthenticationException
-
- org.apache.shiro.authc.AccountException
-
- org.apache.shiro.authc.DisabledAccountException
-
- org.apache.shiro.authc.LockedAccountException
-
-
-
-
- All Implemented Interfaces:
public class LockedAccountException extends DisabledAccountException
A special kind of DisabledAccountException, this exception is thrown when attempting to authenticate and the corresponding account has been disabled explicitly due to being locked.For example, an account can be locked if an administrator explicitly locks an account or perhaps an account can be locked automatically by the system if too many unsuccessful authentication attempts take place during a specific period of time (perhaps indicating a hacking attempt).
- Since:
- 0.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LockedAccountException()
Creates a new LockedAccountException.message)
Constructs a new LockedAccountException.message, cause)
Constructs a new LockedAccountException.cause)
Constructs a new LockedAccountException.
-
-
-
Constructor Detail
-
LockedAccountException
public LockedAccountException()
Creates a new LockedAccountException.
-
LockedAccountException
public LockedAccountException( message)
Constructs a new LockedAccountException.- Parameters:
message
- the reason for the exception
-
LockedAccountException
public LockedAccountException( cause)
Constructs a new LockedAccountException.- Parameters:
cause
- the underlying Throwable that caused this exception to be thrown.
-
LockedAccountException
public LockedAccountException( message, cause)
Constructs a new LockedAccountException.- Parameters:
message
- the reason for the exceptioncause
- the underlying Throwable that caused this exception to be thrown.
-
-