Package com.authlete.common.dto
Enum DeviceCompleteResponse.Action
- java.lang.Object
-
- java.lang.Enum<DeviceCompleteResponse.Action>
-
- com.authlete.common.dto.DeviceCompleteResponse.Action
-
- All Implemented Interfaces:
Serializable
,Comparable<DeviceCompleteResponse.Action>
- Enclosing class:
- DeviceCompleteResponse
public static enum DeviceCompleteResponse.Action extends Enum<DeviceCompleteResponse.Action>
The next action that the authorization server implementation should take.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_REQUEST
The API call is invalid.SERVER_ERROR
An error occurred on Authlete side.SUCCESS
The API call has been processed successfully.USER_CODE_EXPIRED
The user code has expired.USER_CODE_NOT_EXIST
The user code does not exist.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeviceCompleteResponse.Action
valueOf(String name)
Returns the enum constant of this type with the specified name.static DeviceCompleteResponse.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final DeviceCompleteResponse.Action SUCCESS
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
public static final DeviceCompleteResponse.Action INVALID_REQUEST
The API call is invalid. Probably, the authorization server implementation has some bugs.
-
USER_CODE_EXPIRED
public static final DeviceCompleteResponse.Action USER_CODE_EXPIRED
The user code 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
public static final DeviceCompleteResponse.Action USER_CODE_NOT_EXIST
The user code 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
public static final DeviceCompleteResponse.Action SERVER_ERROR
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.
-
-
Method Detail
-
values
public static DeviceCompleteResponse.Action[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DeviceCompleteResponse.Action c : DeviceCompleteResponse.Action.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeviceCompleteResponse.Action valueOf(String name)
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
-
-