|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<FreeIPAAccountState.Error>
org.ldaptive.auth.ext.FreeIPAAccountState.Error
public static enum FreeIPAAccountState.Error
Enum to define FreeIPA errors.
| Enum Constant Summary | |
|---|---|
ACCOUNT_DISABLED
account disabled. |
|
ACCOUNT_EXPIRED
account expired. |
|
ACCOUNT_NOT_FOUND
account not found. |
|
CREDENTIAL_NOT_FOUND
credential not found. |
|
FAILED_AUTHENTICATION
failed authentication. |
|
LOGIN_LOCKOUT
login lockout. |
|
LOGIN_TIME_LIMITED
login time limited. |
|
MAXIMUM_LOGINS_EXCEEDED
maximum logins exceeded. |
|
PASSWORD_EXPIRED
password expired. |
|
UNKNOWN
unknown state. |
|
| Method Summary | |
|---|---|
int |
getCode()
Returns the error code. |
String |
getMessage()
Returns the error message. |
static FreeIPAAccountState.Error |
parse(ResultCode rc,
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 FreeIPAAccountState.Error |
valueOf(int code)
Returns the error for the supplied integer constant. |
static FreeIPAAccountState.Error |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FreeIPAAccountState.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 FreeIPAAccountState.Error UNKNOWN
public static final FreeIPAAccountState.Error FAILED_AUTHENTICATION
public static final FreeIPAAccountState.Error PASSWORD_EXPIRED
public static final FreeIPAAccountState.Error ACCOUNT_EXPIRED
public static final FreeIPAAccountState.Error MAXIMUM_LOGINS_EXCEEDED
public static final FreeIPAAccountState.Error LOGIN_TIME_LIMITED
public static final FreeIPAAccountState.Error LOGIN_LOCKOUT
public static final FreeIPAAccountState.Error ACCOUNT_NOT_FOUND
public static final FreeIPAAccountState.Error CREDENTIAL_NOT_FOUND
public static final FreeIPAAccountState.Error ACCOUNT_DISABLED
| Method Detail |
|---|
public static FreeIPAAccountState.Error[] values()
for (FreeIPAAccountState.Error c : FreeIPAAccountState.Error.values()) System.out.println(c);
public static FreeIPAAccountState.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()
AccountState.Error
getCode in interface AccountState.Errorpublic String getMessage()
AccountState.Error
getMessage in interface AccountState.Error
public void throwSecurityException()
throws LoginException
AccountState.Error
throwSecurityException in interface AccountState.ErrorLoginException - for this account state errorpublic static FreeIPAAccountState.Error valueOf(int code)
code - to find error for
public static FreeIPAAccountState.Error parse(ResultCode rc,
String message)
rc - result codemessage - to parse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||