Package org.apereo.cas.redis
Enum RedisUserAccount.AccountStatus
- java.lang.Object
-
- java.lang.Enum<RedisUserAccount.AccountStatus>
-
- org.apereo.cas.redis.RedisUserAccount.AccountStatus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RedisUserAccount.AccountStatus>
- Enclosing class:
- RedisUserAccount
public static enum RedisUserAccount.AccountStatus extends java.lang.Enum<RedisUserAccount.AccountStatus>
Indicates user account status.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISABLEDDisabled account status.EXPIREDExpired account status.LOCKEDLocked account status.MUST_CHANGE_PASSWORDMust change password account status.OKOk account status.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RedisUserAccount.AccountStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RedisUserAccount.AccountStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final RedisUserAccount.AccountStatus OK
Ok account status.
-
LOCKED
public static final RedisUserAccount.AccountStatus LOCKED
Locked account status.
-
DISABLED
public static final RedisUserAccount.AccountStatus DISABLED
Disabled account status.
-
EXPIRED
public static final RedisUserAccount.AccountStatus EXPIRED
Expired account status.
-
MUST_CHANGE_PASSWORD
public static final RedisUserAccount.AccountStatus MUST_CHANGE_PASSWORD
Must change password account status.
-
-
Method Detail
-
values
public static RedisUserAccount.AccountStatus[] 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 (RedisUserAccount.AccountStatus c : RedisUserAccount.AccountStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RedisUserAccount.AccountStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-