|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ActiveDirectoryAccountState.Error>
org.ldaptive.auth.ext.ActiveDirectoryAccountState.Error
public static enum ActiveDirectoryAccountState.Error
Enum to define active directory errors. See http://ldapwiki.willeke.com/wiki/ Common%20Active%20Directory%20Bind%20Errors
| Enum Constant Summary | |
|---|---|
ACCOUNT_DISABLED
account disabled. |
|
ACCOUNT_EXPIRED
account expired. |
|
ACCOUNT_LOCKED_OUT
account locked out. |
|
INVALID_LOGON_HOURS
invalid logon hours. |
|
INVALID_WORKSTATION
invalid workstation. |
|
LOGON_FAILURE
logon failure. |
|
NO_SUCH_USER
no such user. |
|
PASSWORD_EXPIRED
password expired. |
|
PASSWORD_MUST_CHANGE
password must change. |
|
| Method Summary | |
|---|---|
int |
getCode()
Returns the error code. |
String |
getMessage()
Returns the error message. |
static ActiveDirectoryAccountState.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 ActiveDirectoryAccountState.Error |
valueOf(int code)
Returns the error for the supplied integer constant. |
static ActiveDirectoryAccountState.Error |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ActiveDirectoryAccountState.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 ActiveDirectoryAccountState.Error NO_SUCH_USER
public static final ActiveDirectoryAccountState.Error LOGON_FAILURE
public static final ActiveDirectoryAccountState.Error INVALID_LOGON_HOURS
public static final ActiveDirectoryAccountState.Error INVALID_WORKSTATION
public static final ActiveDirectoryAccountState.Error PASSWORD_EXPIRED
public static final ActiveDirectoryAccountState.Error ACCOUNT_DISABLED
public static final ActiveDirectoryAccountState.Error ACCOUNT_EXPIRED
public static final ActiveDirectoryAccountState.Error PASSWORD_MUST_CHANGE
public static final ActiveDirectoryAccountState.Error ACCOUNT_LOCKED_OUT
| Method Detail |
|---|
public static ActiveDirectoryAccountState.Error[] values()
for (ActiveDirectoryAccountState.Error c : ActiveDirectoryAccountState.Error.values()) System.out.println(c);
public static ActiveDirectoryAccountState.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 ActiveDirectoryAccountState.Error valueOf(int code)
code - to find error for
public static ActiveDirectoryAccountState.Error parse(String message)
PATTERN and parses the first group match
as a hexadecimal integer.
message - to parse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||