Package com.authlete.common.dto
Enum UserInfoIssueResponse.Action
- java.lang.Object
-
- java.lang.Enum<UserInfoIssueResponse.Action>
-
- com.authlete.common.dto.UserInfoIssueResponse.Action
-
- All Implemented Interfaces:
Serializable
,Comparable<UserInfoIssueResponse.Action>
- Enclosing class:
- UserInfoIssueResponse
public static enum UserInfoIssueResponse.Action extends Enum<UserInfoIssueResponse.Action>
The next action the service implementation should take.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_REQUEST
The request does not contain an access token.FORBIDDEN
The access token does not cover the required scopes.INTERNAL_SERVER_ERROR
The request from the service implementation was wrong or an error occurred in Authlete.JSON
The access token was valid and a userinfo response was generated successfully in JSON format.JWT
The access token was valid and a userinfo response token was generated successfully in JWT format.UNAUTHORIZED
The access token does not exist or has expired.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UserInfoIssueResponse.Action
valueOf(String name)
Returns the enum constant of this type with the specified name.static UserInfoIssueResponse.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTERNAL_SERVER_ERROR
public static final UserInfoIssueResponse.Action INTERNAL_SERVER_ERROR
The request from the service implementation was wrong or an error occurred in Authlete. The service implementation should return"500 Internal Server Error"
to the client application.
-
BAD_REQUEST
public static final UserInfoIssueResponse.Action BAD_REQUEST
The request does not contain an access token. The service implementation should return"400 Bad Request"
to the client application.
-
UNAUTHORIZED
public static final UserInfoIssueResponse.Action UNAUTHORIZED
The access token does not exist or has expired. The service implementation should return"401 Unauthorized"
to the client application.
-
FORBIDDEN
public static final UserInfoIssueResponse.Action FORBIDDEN
The access token does not cover the required scopes. To be concrete, the access token does not include the"openid"
scope. The service implementation should return"403 Forbidden"
to the client application.
-
JSON
public static final UserInfoIssueResponse.Action JSON
The access token was valid and a userinfo response was generated successfully in JSON format. The service implementation should return"200 OK"
to the client application with the content type"application/json;charset=UTF-8"
.
-
JWT
public static final UserInfoIssueResponse.Action JWT
The access token was valid and a userinfo response token was generated successfully in JWT format. The service implementation should return"200 OK"
to the client application with the content type"application/jwt"
.
-
-
Method Detail
-
values
public static UserInfoIssueResponse.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 (UserInfoIssueResponse.Action c : UserInfoIssueResponse.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 UserInfoIssueResponse.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
-
-