Package com.jgcomptech.tools.authc
Class ExpiredCredentialsException
- 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.ExpiredCredentialsException
-
- All Implemented Interfaces:
java.io.Serializable
public class ExpiredCredentialsException extends CredentialsException
Thrown during the authentication process when the system determines the submitted credential(s) has expired and will not allow login.This is most often used to alert a user that their credentials (e.g. password or cryptography key) has expired and they should change the value. In such systems, the component invoking the authentication might catch this exception and redirect the user to an appropriate view to allow them to update their password or other credentials mechanism.
- Since:
- 1.5.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExpiredCredentialsException()
Creates a new ExpiredCredentialsException.ExpiredCredentialsException(java.lang.String message)
Constructs a new ExpiredCredentialsException.ExpiredCredentialsException(java.lang.String message, java.lang.Throwable cause)
Constructs a new ExpiredCredentialsException.ExpiredCredentialsException(java.lang.Throwable cause)
Constructs a new ExpiredCredentialsException.
-
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
-
ExpiredCredentialsException
public ExpiredCredentialsException()
Creates a new ExpiredCredentialsException.
-
ExpiredCredentialsException
public ExpiredCredentialsException(java.lang.String message)
Constructs a new ExpiredCredentialsException.- Parameters:
message
- the reason for the exception
-
ExpiredCredentialsException
public ExpiredCredentialsException(java.lang.Throwable cause)
Constructs a new ExpiredCredentialsException.- Parameters:
cause
- the underlying Throwable that caused this exception to be thrown
-
ExpiredCredentialsException
public ExpiredCredentialsException(java.lang.String message, java.lang.Throwable cause)
Constructs a new ExpiredCredentialsException.- Parameters:
message
- the reason for the exceptioncause
- the underlying Throwable that caused this exception to be thrown
-
-