Package com.authlete.common.dto
Enum DeviceAuthorizationResponse.Action
- java.lang.Object
-
- java.lang.Enum<DeviceAuthorizationResponse.Action>
-
- com.authlete.common.dto.DeviceAuthorizationResponse.Action
-
- All Implemented Interfaces:
Serializable
,Comparable<DeviceAuthorizationResponse.Action>
- Enclosing class:
- DeviceAuthorizationResponse
public static enum DeviceAuthorizationResponse.Action extends Enum<DeviceAuthorizationResponse.Action>
The next action that the authorization server implementation should take.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_REQUEST
The device authorization request is invalid.INTERNAL_SERVER_ERROR
The API call from the authorization server implementation was wrong or an error occurred on Authlete side.OK
The device authorization request is valid.UNAUTHORIZED
Client authentication of the device authorization request failed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeviceAuthorizationResponse.Action
valueOf(String name)
Returns the enum constant of this type with the specified name.static DeviceAuthorizationResponse.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final DeviceAuthorizationResponse.Action OK
The device authorization request is valid. The authorization server implementation should return a successful response with200 OK
andapplication/json
to the client application.
-
BAD_REQUEST
public static final DeviceAuthorizationResponse.Action BAD_REQUEST
The device authorization request is invalid. The authorization server implementation should return an error response with400 Bad Request
andapplication/json
to the client application.
-
UNAUTHORIZED
public static final DeviceAuthorizationResponse.Action UNAUTHORIZED
Client authentication of the device authorization request failed. The authorization server implementation should return an error response with401 Unauthorized
andapplication/json
to the client application.
-
INTERNAL_SERVER_ERROR
public static final DeviceAuthorizationResponse.Action INTERNAL_SERVER_ERROR
The API call from the authorization server implementation was wrong or an error occurred on Authlete side. The authorization server implementation should return an error response with500 Internal Server Error
andapplication/json
to the client application.
-
-
Method Detail
-
values
public static DeviceAuthorizationResponse.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 (DeviceAuthorizationResponse.Action c : DeviceAuthorizationResponse.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 DeviceAuthorizationResponse.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
-
-