Package com.authlete.common.dto
Enum ResourceServerSignatureResponse.Action
- java.lang.Object
-
- java.lang.Enum<ResourceServerSignatureResponse.Action>
-
- com.authlete.common.dto.ResourceServerSignatureResponse.Action
-
- All Implemented Interfaces:
Serializable
,Comparable<ResourceServerSignatureResponse.Action>
- Enclosing class:
- ResourceServerSignatureResponse
public static enum ResourceServerSignatureResponse.Action extends Enum<ResourceServerSignatureResponse.Action>
The next action the resource server implementation should take.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_REQUEST
The request does not contain the required parameters.INTERNAL_SERVER_ERROR
The request from the service implementation was wrong or an error occurred in Authlete.OK
The signature was successfully applied to the request.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourceServerSignatureResponse.Action
valueOf(String name)
Returns the enum constant of this type with the specified name.static ResourceServerSignatureResponse.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 ResourceServerSignatureResponse.Action INTERNAL_SERVER_ERROR
The request from the service implementation was wrong or an error occurred in Authlete. The RS implementation should return"500 Internal Server Error"
to the client application.
-
BAD_REQUEST
public static final ResourceServerSignatureResponse.Action BAD_REQUEST
The request does not contain the required parameters. The RS implementation should return"400 Bad Request"
to the client application.
-
OK
public static final ResourceServerSignatureResponse.Action OK
The signature was successfully applied to the request. The RS implementation should add the response headers into the response to the client application.
-
-
Method Detail
-
values
public static ResourceServerSignatureResponse.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 (ResourceServerSignatureResponse.Action c : ResourceServerSignatureResponse.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 ResourceServerSignatureResponse.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
-
-