public enum PasswordAction extends java.lang.Enum<PasswordAction>
| Enum Constant and Description |
|---|
ACTIVATE
Activate a generated password by the owner user
|
ALLOW_ACTIVATION
For password types which require admin authorization to generate, allow users to generate them
|
CHANGE
Manually change a manual password, or generate a new generated password
|
DISABLE
Disables a password, making it unusable until being enabled again
|
ENABLE
Enables a disabled password (could be either manually disabled or by exceeding the wrong tries, depending on the
type configuration)
|
RESET
Resets a generated password, making it go back to the pending state
|
RESET_AND_SEND
Resets a manual password to a generated value and send it to the user.
|
UNBLOCK
Unblocks a blocked password
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowed(PasswordMode mode) |
boolean |
allowed(PasswordMode mode,
PasswordStatus status)
Returns true if this action is allowed for both (status and mode)
|
boolean |
allowed(PasswordStatus status) |
void |
checkAllowed(PasswordMode mode) |
void |
checkAllowed(PasswordStatus status) |
static PasswordAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PasswordAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PasswordAction ACTIVATE
public static final PasswordAction ALLOW_ACTIVATION
public static final PasswordAction CHANGE
public static final PasswordAction DISABLE
public static final PasswordAction ENABLE
public static final PasswordAction RESET
public static final PasswordAction RESET_AND_SEND
public static final PasswordAction UNBLOCK
public static PasswordAction[] values()
for (PasswordAction c : PasswordAction.values()) System.out.println(c);
public static PasswordAction valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean allowed(PasswordMode mode)
public boolean allowed(PasswordMode mode, PasswordStatus status)
public boolean allowed(PasswordStatus status)
public void checkAllowed(PasswordMode mode)
public void checkAllowed(PasswordStatus status)