Package org.apache.shiro.authc
Class IncorrectCredentialsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.shiro.ShiroException
-
- org.apache.shiro.authc.AuthenticationException
-
- org.apache.shiro.authc.CredentialsException
-
- org.apache.shiro.authc.IncorrectCredentialsException
-
- All Implemented Interfaces:
Serializable
public class IncorrectCredentialsException extends CredentialsException
Thrown when attempting to authenticate with credential(s) that do not match the actual credentials associated with the account principal.For example, this exception might be thrown if a user's password is "secret" and "secrets" was entered by mistake.
Whether or not an application wishes to let the user know if they entered incorrect credentials is at the discretion of those responsible for defining the view and what happens when this exception occurs.
- Since:
- 0.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IncorrectCredentialsException()
Creates a new IncorrectCredentialsException.IncorrectCredentialsException(String message)
Constructs a new IncorrectCredentialsException.IncorrectCredentialsException(String message, Throwable cause)
Constructs a new IncorrectCredentialsException.IncorrectCredentialsException(Throwable cause)
Constructs a new IncorrectCredentialsException.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
IncorrectCredentialsException
public IncorrectCredentialsException()
Creates a new IncorrectCredentialsException.
-
IncorrectCredentialsException
public IncorrectCredentialsException(String message)
Constructs a new IncorrectCredentialsException.- Parameters:
message
- the reason for the exception
-
IncorrectCredentialsException
public IncorrectCredentialsException(Throwable cause)
Constructs a new IncorrectCredentialsException.- Parameters:
cause
- the underlying Throwable that caused this exception to be thrown.
-
-