Package com.authlete.common.dto
Enum RevocationResponse.Action
- java.lang.Object
-
- java.lang.Enum<RevocationResponse.Action>
-
- com.authlete.common.dto.RevocationResponse.Action
-
- All Implemented Interfaces:
Serializable
,Comparable<RevocationResponse.Action>
- Enclosing class:
- RevocationResponse
public static enum RevocationResponse.Action extends Enum<RevocationResponse.Action>
The next action that the service implementation should take.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_REQUEST
The request from the client was wrong.INTERNAL_SERVER_ERROR
The request from the service was wrong or an error occurred in Authlete.INVALID_CLIENT
Authentication of the client application failed.OK
The request from the client was valid.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RevocationResponse.Action
valueOf(String name)
Returns the enum constant of this type with the specified name.static RevocationResponse.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_CLIENT
public static final RevocationResponse.Action INVALID_CLIENT
Authentication of the client application failed. The service implementation should return either"400 Bad Request"
or"401 Unauthorized"
to the client application.
-
INTERNAL_SERVER_ERROR
public static final RevocationResponse.Action INTERNAL_SERVER_ERROR
The request from the service 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 RevocationResponse.Action BAD_REQUEST
The request from the client was wrong. The service implementation should return"400 Bad Request"
to the client application.
-
OK
public static final RevocationResponse.Action OK
The request from the client was valid. The service implementation should return"200 OK"
to the client application.
-
-
Method Detail
-
values
public static RevocationResponse.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 (RevocationResponse.Action c : RevocationResponse.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 RevocationResponse.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
-
-