|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<EDirectoryAccountState.Error>
org.ldaptive.auth.ext.EDirectoryAccountState.Error
public static enum EDirectoryAccountState.Error
Enum to define edirectory errors. See http://support.novell.com/docs/Tids/Solutions/10067240.html and http://www.novell.com/documentation/nwec/nwec_enu/nwec_nds_error_codes.html
| Enum Constant Summary | |
|---|---|
ACCOUNT_EXPIRED
account expired. |
|
BAD_PASSWORD
bad password. |
|
FAILED_AUTHENTICATION
failed authentication. |
|
LOGIN_LOCKOUT
login lockout. |
|
LOGIN_TIME_LIMITED
login time limited. |
|
MAXIMUM_LOGINS_EXCEEDED
maximum logins exceeded. |
|
PASSWORD_EXPIRED
password expired. |
|
| Method Summary | |
|---|---|
int |
getCode()
Returns the error code. |
String |
getMessage()
Returns the error message. |
static EDirectoryAccountState.Error |
parse(String message)
Parses the supplied error messages and returns the corresponding error enum. |
void |
throwSecurityException()
Throws the LoginException that best maps to this error. |
static EDirectoryAccountState.Error |
valueOf(int code)
Returns the error for the supplied integer constant. |
static EDirectoryAccountState.Error |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EDirectoryAccountState.Error[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final EDirectoryAccountState.Error FAILED_AUTHENTICATION
public static final EDirectoryAccountState.Error PASSWORD_EXPIRED
public static final EDirectoryAccountState.Error BAD_PASSWORD
public static final EDirectoryAccountState.Error ACCOUNT_EXPIRED
public static final EDirectoryAccountState.Error MAXIMUM_LOGINS_EXCEEDED
public static final EDirectoryAccountState.Error LOGIN_TIME_LIMITED
public static final EDirectoryAccountState.Error LOGIN_LOCKOUT
| Method Detail |
|---|
public static EDirectoryAccountState.Error[] values()
for (EDirectoryAccountState.Error c : EDirectoryAccountState.Error.values()) System.out.println(c);
public static EDirectoryAccountState.Error valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int getCode()
getCode in interface AccountState.Errorpublic String getMessage()
getMessage in interface AccountState.Error
public void throwSecurityException()
throws LoginException
throwSecurityException in interface AccountState.ErrorLoginException - for this account state errorpublic static EDirectoryAccountState.Error valueOf(int code)
code - to find error for
public static EDirectoryAccountState.Error parse(String message)
PATTERN and parses the second group match
as a decimal integer.
message - to parse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||