public static enum ClientRegistrationResponse.Action extends Enum<ClientRegistrationResponse.Action>
| Enum Constant and Description |
|---|
BAD_REQUEST
The request from the client was wrong.
|
CREATED
The request was valid and a client application has been registered
successfully.
|
DELETED
The request was valid and a client application has been deleted
successfully.
|
INTERNAL_SERVER_ERROR
The request from the endpoint implementation was wrong or an error
occurred in Authlete.
|
OK
The request was valid and the client application has been returned.
|
UNAUTHORIZED
The registration access token used by the client configuration
request (RFC 7592) is invalid, or the client application which the
token is tied to does not exist any longer or is invalid.
|
UPDATED
The request was valid and a client application has been updated
successfully.
|
| Modifier and Type | Method and Description |
|---|---|
static ClientRegistrationResponse.Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientRegistrationResponse.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientRegistrationResponse.Action INTERNAL_SERVER_ERROR
"500 Internal Server Error" to the client application.public static final ClientRegistrationResponse.Action BAD_REQUEST
"400 Bad Request" to the client application.public static final ClientRegistrationResponse.Action UNAUTHORIZED
"401 Unauthorized".
This enum value did not exist in the initial implementation of this enum, meaning that implementations of client configuration endpoint were not able to conform to RFC 7592 strictly.
For backward compatibility (to avoid breaking running systems),
Authlete's /api/client/registration API does not return
this UNAUTHORIZED enum value if the unauthorizedOnClientConfigSupported flag of the Service
is not turned on. See the description of Service.setUnauthorizedOnClientConfigSupported(boolean) for
details.
public static final ClientRegistrationResponse.Action CREATED
"201 Created" to the client application.public static final ClientRegistrationResponse.Action UPDATED
"200 OK" to the client application.public static final ClientRegistrationResponse.Action DELETED
"204 No Content" to the client application.public static final ClientRegistrationResponse.Action OK
"200 OK" to the
client application.public static ClientRegistrationResponse.Action[] values()
for (ClientRegistrationResponse.Action c : ClientRegistrationResponse.Action.values()) System.out.println(c);
public static ClientRegistrationResponse.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 © 2022. All rights reserved.