public static enum TokenResponse.Action extends Enum<TokenResponse.Action>
| Enum Constant and Description |
|---|
BAD_REQUEST
The token request from the client was wrong.
|
INTERNAL_SERVER_ERROR
The request from the service was wrong or an error occurred
in Authlete.
|
INVALID_CLIENT
Authentication of the client application failed.
|
OK
The token request from the client was valid.
|
PASSWORD
The token request from the client application was valid and
the grant type is
"password". |
| Modifier and Type | Method and Description |
|---|---|
static TokenResponse.Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenResponse.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenResponse.Action INVALID_CLIENT
"400 Bad Request"
or "401 Unauthorized" to the client application.public static final TokenResponse.Action INTERNAL_SERVER_ERROR
"500 Internal Server Error" to the client application.public static final TokenResponse.Action BAD_REQUEST
"400 Bad Request" to the
client application.public static final TokenResponse.Action PASSWORD
"password". The service implementation
should validate the credentials of the resource owner and call
Authlete's /auth/token/issue API or /auth/token/fail
API according to the result of the validation.public static final TokenResponse.Action OK
"200 OK" to the client
application with an access token.public static TokenResponse.Action[] values()
for (TokenResponse.Action c : TokenResponse.Action.values()) System.out.println(c);
public static TokenResponse.Action 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 © 2017. All rights reserved.