public enum LoginValue extends Enum<LoginValue>
Enum Constant and Description |
---|
FAILED
String value in the result field of the JSON response if the password was
wrong.
|
LOGIN_BLOCKED
String value in the result field of the JSON response if the user is
blocked.
|
LOGIN_CREATE_BLOCKED
String value in the result field of the JSON response if the wiki tried
to automatically create a new account for you, but your IP address has
been blocked from account creation.
|
LOGIN_EMPTY_PASS
String value in the result field of the JSON response if password is
empty.
|
LOGIN_ILLEGAL
String value in the result field of the JSON response if the username is
illegal.
|
LOGIN_NEEDTOKEN
String value in the result field of the JSON response if token or session
ID is missing.
|
LOGIN_NO_NAME
String value in the result field of the JSON response if no username was
given.
|
LOGIN_NOT_EXISTS
String value in the result field of the JSON response if given username
does not exist.
|
LOGIN_RESULT_SUCCESS
String value in the result field of the JSON response if the login was
successful.
|
LOGIN_THROTTLED
String value in the result field of the JSON response if there were too
many logins in a short time.
|
LOGIN_WRONG_PASS
String value in the result field of the JSON response if the password was
wrong.
|
LOGIN_WRONG_PLUGIN_PASS
String value in the result field of the JSON response if the password was
rejected by an authentication plugin.
|
LOGIN_WRONG_TOKEN
String value in the result field of the JSON response if token is wrong.
|
PARAM_LOGIN_PASSWORD
Name of the HTTP parameter to submit a password to the API.
|
PARAM_LOGIN_TOKEN
Name of the HTTP parameter to submit a login token to the API.
|
PARAM_LOGIN_USERNAME
Name of the HTTP parameter to submit a password to the API.
|
UNKNOWN
Value for unknown response text
|
Modifier and Type | Method and Description |
---|---|
String |
getClientLoginText() |
String |
getLoginText() |
String |
getMessage(String loginType) |
static LoginValue |
of(String text) |
static LoginValue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoginValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoginValue PARAM_LOGIN_USERNAME
public static final LoginValue PARAM_LOGIN_PASSWORD
public static final LoginValue PARAM_LOGIN_TOKEN
public static final LoginValue LOGIN_RESULT_SUCCESS
public static final LoginValue LOGIN_WRONG_PASS
public static final LoginValue FAILED
public static final LoginValue LOGIN_WRONG_PLUGIN_PASS
public static final LoginValue LOGIN_NO_NAME
public static final LoginValue LOGIN_NOT_EXISTS
public static final LoginValue LOGIN_ILLEGAL
public static final LoginValue LOGIN_THROTTLED
public static final LoginValue LOGIN_EMPTY_PASS
public static final LoginValue LOGIN_CREATE_BLOCKED
public static final LoginValue LOGIN_BLOCKED
public static final LoginValue LOGIN_NEEDTOKEN
public static final LoginValue LOGIN_WRONG_TOKEN
public static final LoginValue UNKNOWN
public static LoginValue[] values()
for (LoginValue c : LoginValue.values()) System.out.println(c);
public static LoginValue 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 static LoginValue of(String text)
public String getLoginText()
public String getClientLoginText()
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage