public class DeviceCompleteResponse extends ApiResponse
/api/device/complete API.
Authlete's /api/device/complete API returns JSON which can be mapped
to this class. The authorization server implementation should retrieve the
value of action from the response and take the following steps
according to the value.
SUCCESS
When the value of action is SUCCESS, it means that the API
call has been processed successfully. The authorization server should return
a successful response to the web browser the end-user is using.
INVALID_REQUEST
When the value of action is INVALID_REQUEST, it means that
the API call is invalid. Probably, the authorization server implementation
has some bugs.
USER_CODE_EXPIRED
When the value of action is USER_CODE_EXPIRED, it means that
the user code included in the API call has expired. The authorization server
implementation should tell the end-user that the user code has expired and
urge her to re-initiate a device flow.
USER_CODE_NOT_EXIST
When the value of action is USER_CODE_NOT_EXIST, it means
that the user code included in the API call does not exist. The authorization
server implementation should tell the end-user that the user code has been
invalidated and urge her to re-initiate a device flow.
SERVER_ERROR
When the value of action is SERVER_ERROR, it means that an
error occurred on Authlete side. The authorization server implementation
should tell the end-user that something wrong happened and urge her to
re-initiate a device flow.
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceCompleteResponse.Action
The next action that the authorization server implementation should take.
|
| Constructor and Description |
|---|
DeviceCompleteResponse() |
| Modifier and Type | Method and Description |
|---|---|
DeviceCompleteResponse.Action |
getAction()
Get the next action that the authorization server implementation should
take.
|
DeviceCompleteResponse |
setAction(DeviceCompleteResponse.Action action)
Set the next action that the authorization server implementation should
take.
|
getResultCode, getResultMessage, setResultCode, setResultMessagepublic DeviceCompleteResponse.Action getAction()
public DeviceCompleteResponse setAction(DeviceCompleteResponse.Action action)
action - The next action.this object.Copyright © 2019. All rights reserved.