Package com.jgcomptech.tools.authc
Class IncorrectCredentialsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.jgcomptech.tools.authc.AuthenticationException
-
- com.jgcomptech.tools.authc.CredentialsException
-
- com.jgcomptech.tools.authc.IncorrectCredentialsException
-
- All Implemented Interfaces:
java.io.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:
- 1.5.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IncorrectCredentialsException()
Creates a new IncorrectCredentialsException.IncorrectCredentialsException(java.lang.String message)
Constructs a new IncorrectCredentialsException.IncorrectCredentialsException(java.lang.String message, java.lang.Throwable cause)
Constructs a new IncorrectCredentialsException.IncorrectCredentialsException(java.lang.Throwable cause)
Constructs a new IncorrectCredentialsException.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertThrown(@NotNull java.lang.Runnable runnable)
Asserts that the specified runnable throws this exception and if not throws an junit assertion failure.
-
-
-
Constructor Detail
-
IncorrectCredentialsException
public IncorrectCredentialsException()
Creates a new IncorrectCredentialsException.
-
IncorrectCredentialsException
public IncorrectCredentialsException(java.lang.String message)
Constructs a new IncorrectCredentialsException.- Parameters:
message
- the reason for the exception
-
IncorrectCredentialsException
public IncorrectCredentialsException(java.lang.Throwable cause)
Constructs a new IncorrectCredentialsException.- Parameters:
cause
- the underlying Throwable that caused this exception to be thrown
-
IncorrectCredentialsException
public IncorrectCredentialsException(java.lang.String message, java.lang.Throwable cause)
Constructs a new IncorrectCredentialsException.- Parameters:
message
- the reason for the exceptioncause
- the underlying Throwable that caused this exception to be thrown
-
-