public static enum FreeIPAAccountState.Error extends Enum<FreeIPAAccountState.Error> implements AccountState.Error
| Enum Constant and Description |
|---|
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.
|
| Modifier and Type | Field and Description |
|---|---|
private int |
code
underlying error code.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
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 nameNullPointerException - if the argument is nullpublic int getCode()
AccountState.ErrorgetCode in interface AccountState.Errorpublic String getMessage()
AccountState.ErrorgetMessage in interface AccountState.Errorpublic void throwSecurityException()
throws LoginException
AccountState.ErrorthrowSecurityException in interface AccountState.ErrorLoginException - for this account state errorpublic static FreeIPAAccountState.Error valueOf(int code)
code - to find error forpublic static FreeIPAAccountState.Error parse(ResultCode rc, String message)
rc - result codemessage - to parseCopyright © 2003-2019 Virginia Tech. All Rights Reserved.