public static enum TokenFailRequest.Reason extends Enum<TokenFailRequest.Reason>
| Enum Constant and Description |
|---|
INVALID_RESOURCE_OWNER_CREDENTIALS
The resource owner's credentials (
username and
password) contained in the token request whose
flow is
"Resource Owner Password Credentials") are invalid. |
INVALID_TARGET
The requested resource is invalid, missing, unknown, or malformed.
|
UNKNOWN
Unknown reason.
|
| Modifier and Type | Method and Description |
|---|---|
static TokenFailRequest.Reason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenFailRequest.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenFailRequest.Reason UNKNOWN
Using this reason will result in
"error":"server_error".
public static final TokenFailRequest.Reason INVALID_RESOURCE_OWNER_CREDENTIALS
username and
password) contained in the token request whose
flow is
"Resource Owner Password Credentials") are invalid.
Using this reason will result in
"error":"invalid_request".
public static final TokenFailRequest.Reason INVALID_TARGET
Using this reason will result in
"error":"invalid_target".
public static TokenFailRequest.Reason[] values()
for (TokenFailRequest.Reason c : TokenFailRequest.Reason.values()) System.out.println(c);
public static TokenFailRequest.Reason 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 nullCopyright © 2021. All rights reserved.