Package org.ldaptive.auth.ext
Enum PasswordExpirationAccountState.Error
java.lang.Object
java.lang.Enum<PasswordExpirationAccountState.Error>
org.ldaptive.auth.ext.PasswordExpirationAccountState.Error
- All Implemented Interfaces:
Serializable,Comparable<PasswordExpirationAccountState.Error>,AccountState.Error
- Enclosing class:
- PasswordExpirationAccountState
public static enum PasswordExpirationAccountState.Error
extends Enum<PasswordExpirationAccountState.Error>
implements AccountState.Error
Enum to define password expiration error.
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Returns the error code.Returns the error message.voidThrows the LoginException that best maps to this error.Returns the enum constant of this type with the specified name.static PasswordExpirationAccountState.Error[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PASSWORD_EXPIRED
password expired.
-
-
Constructor Details
-
Error
private Error()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public int getCode()Description copied from interface:AccountState.ErrorReturns the error code.- Specified by:
getCodein interfaceAccountState.Error- Returns:
- error code
-
getMessage
Description copied from interface:AccountState.ErrorReturns the error message.- Specified by:
getMessagein interfaceAccountState.Error- Returns:
- error message
-
throwSecurityException
Description copied from interface:AccountState.ErrorThrows the LoginException that best maps to this error.- Specified by:
throwSecurityExceptionin interfaceAccountState.Error- Throws:
LoginException- for this account state error
-