Package org.wikidata.wdtk.wikibaseapi
Enum LoginValue
- All Implemented Interfaces:
Serializable
,Comparable<LoginValue>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionString value in the result field of the JSON response if the password was wrong.String value in the result field of the JSON response if the user is 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.String value in the result field of the JSON response if password is empty.String value in the result field of the JSON response if the username is illegal.String value in the result field of the JSON response if token or session ID is missing.String value in the result field of the JSON response if no username was given.String value in the result field of the JSON response if given username does not exist.String value in the result field of the JSON response if the login was successful.String value in the result field of the JSON response if there were too many logins in a short time.String value in the result field of the JSON response if the password was wrong.String value in the result field of the JSON response if the password was rejected by an authentication plugin.String value in the result field of the JSON response if token is wrong.Name of the HTTP parameter to submit a password to the API.Name of the HTTP parameter to submit a login token to the API.Name of the HTTP parameter to submit a password to the API.Value for unknown response text -
Method Summary
Modifier and TypeMethodDescriptiongetMessage
(String loginType) static LoginValue
static LoginValue
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.
-
Enum Constant Details
-
PARAM_LOGIN_USERNAME
Name of the HTTP parameter to submit a password to the API. -
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. -
LOGIN_RESULT_SUCCESS
String value in the result field of the JSON response if the login was successful. -
LOGIN_WRONG_PASS
String value in the result field of the JSON response if the password was wrong. -
FAILED
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_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_ILLEGAL
String value in the result field of the JSON response if the username is illegal. -
LOGIN_THROTTLED
String value in the result field of the JSON response if there were too many logins in a short time. -
LOGIN_EMPTY_PASS
String value in the result field of the JSON response if password is empty. -
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_BLOCKED
String value in the result field of the JSON response if the user is blocked. -
LOGIN_NEEDTOKEN
String value in the result field of the JSON response if token or session ID is missing. -
LOGIN_WRONG_TOKEN
String value in the result field of the JSON response if token is wrong. -
UNKNOWN
Value for unknown response text
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
of
-
getLoginText
-
getClientLoginText
-
getMessage
-