Package com.authlete.common.dto
Enum PushedAuthReqResponse.Action
- java.lang.Object
-
- java.lang.Enum<PushedAuthReqResponse.Action>
-
- com.authlete.common.dto.PushedAuthReqResponse.Action
-
- All Implemented Interfaces:
Serializable
,Comparable<PushedAuthReqResponse.Action>
- Enclosing class:
- PushedAuthReqResponse
public static enum PushedAuthReqResponse.Action extends Enum<PushedAuthReqResponse.Action>
The next action the authorization server should take.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_REQUEST
The request is invalid.CREATED
The pushed authorization request has been registered successfully.FORBIDDEN
The client application is not allowed to use the pushed authorization request endpoint.INTERNAL_SERVER_ERROR
The API call was wrong or an error occurred on Authlete side.PAYLOAD_TOO_LARGE
The size of the pushed authorization request is too large.UNAUTHORIZED
The client authentication at the pushed authorization request endpoint failed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PushedAuthReqResponse.Action
valueOf(String name)
Returns the enum constant of this type with the specified name.static PushedAuthReqResponse.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATED
public static final PushedAuthReqResponse.Action CREATED
The pushed authorization request has been registered successfully. The endpoint should return201 Created
to the client application.
-
BAD_REQUEST
public static final PushedAuthReqResponse.Action BAD_REQUEST
The request is invalid. The pushed authorization request endpoint should return400 Bad Request
to the client application.
-
UNAUTHORIZED
public static final PushedAuthReqResponse.Action UNAUTHORIZED
The client authentication at the pushed authorization request endpoint failed. The endpoint should return401 Unauthorized
to the client application.
-
FORBIDDEN
public static final PushedAuthReqResponse.Action FORBIDDEN
The client application is not allowed to use the pushed authorization request endpoint. The endpoint should return403 Forbidden
to the client application.
-
PAYLOAD_TOO_LARGE
public static final PushedAuthReqResponse.Action PAYLOAD_TOO_LARGE
The size of the pushed authorization request is too large. The endpoint should return413 Payload Too Large
to the client application.
-
INTERNAL_SERVER_ERROR
public static final PushedAuthReqResponse.Action INTERNAL_SERVER_ERROR
The API call was wrong or an error occurred on Authlete side. The pushed authorization request endpoint should return500 Internal Server Error
to the client application. However, it is up to the authorization server's policy whether to return500
actually.
-
-
Method Detail
-
values
public static PushedAuthReqResponse.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 (PushedAuthReqResponse.Action c : PushedAuthReqResponse.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 PushedAuthReqResponse.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
-
-