Class PasswordPolicyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.aristaflow.adept2.base.security.PasswordPolicyException
-
- All Implemented Interfaces:
Serializable
public class PasswordPolicyException extends Exception
APasswordPolicyExceptionis thrown when setting or changing a password and the new password doesn't comply to certain restrictions (like minimum length).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PasswordPolicyException()Constructs a newPasswordPolicyExceptionwithnull.PasswordPolicyException(String message)Constructs a newPasswordPolicyExceptionwith the given detail message.PasswordPolicyException(String message, String problem)Constructs a newPasswordPolicyExceptionwith the given detail message and problem.PasswordPolicyException(String message, Throwable cause)Constructs a newPasswordPolicyExceptionwithnull.PasswordPolicyException(Throwable cause)Constructs a newPasswordPolicyExceptionwithnullas detail message and the given cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetProblem()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PasswordPolicyException
public PasswordPolicyException()
Constructs a newPasswordPolicyExceptionwithnull. as detail message.
-
PasswordPolicyException
public PasswordPolicyException(String message)
Constructs a newPasswordPolicyExceptionwith the given detail message.- Parameters:
message- the detail message
-
PasswordPolicyException
public PasswordPolicyException(String message, String problem)
Constructs a newPasswordPolicyExceptionwith the given detail message and problem.- Parameters:
message- the detail messageproblem- the actual problem of the password
-
PasswordPolicyException
public PasswordPolicyException(String message, Throwable cause)
Constructs a newPasswordPolicyExceptionwithnull. as detail message and the given cause.- Parameters:
message- the detail messagecause- the cause of this exception
-
PasswordPolicyException
public PasswordPolicyException(Throwable cause)
Constructs a newPasswordPolicyExceptionwithnullas detail message and the given cause.- Parameters:
cause- the cause of this exception
-
-
Method Detail
-
getProblem
public String getProblem()
- Returns:
- The problem of the password.
-
-