@Unstable public enum AuthenticationAction extends Enum<AuthenticationAction>
AuthenticationResourceReference
.Enum Constant and Description |
---|
FORGOT_USERNAME
Action used to retrieve the username of a user.
|
RESET_PASSWORD
Action used to reset the password of a user.
|
Modifier and Type | Method and Description |
---|---|
static AuthenticationAction |
getFromRequestParameter(String parameter)
Retrieve an action based on the request parameter.
|
String |
getRequestParameter() |
static AuthenticationAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthenticationAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthenticationAction RESET_PASSWORD
public static final AuthenticationAction FORGOT_USERNAME
public static AuthenticationAction[] values()
for (AuthenticationAction c : AuthenticationAction.values()) System.out.println(c);
public static AuthenticationAction 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 String getRequestParameter()
public static AuthenticationAction getFromRequestParameter(String parameter) throws IllegalArgumentException
parameter
- the parameter from which to retrieve the action.IllegalArgumentException
- if the parameter is empty or if no action could be found based on it.Copyright © 2004–2021 XWiki. All rights reserved.