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 Enum Constant Description PASSWORD_EXPIREDpassword expired.
-
Constructor Summary
Constructors Modifier Constructor Description privateError()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()Returns the error code.StringgetMessage()Returns the error message.voidthrowSecurityException()Throws the LoginException that best maps to this error.static PasswordExpirationAccountState.ErrorvalueOf(String name)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 Detail
-
PASSWORD_EXPIRED
public static final PasswordExpirationAccountState.Error PASSWORD_EXPIRED
password expired.
-
-
Method Detail
-
values
public static PasswordExpirationAccountState.Error[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PasswordExpirationAccountState.Error c : PasswordExpirationAccountState.Error.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PasswordExpirationAccountState.Error valueOf(String name)
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
public String getMessage()
Description copied from interface:AccountState.ErrorReturns the error message.- Specified by:
getMessagein interfaceAccountState.Error- Returns:
- error message
-
throwSecurityException
public void throwSecurityException() throws LoginExceptionDescription 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
-
-