Package com.authlete.common.dto
Enum StandardIntrospectionResponse.Action
- java.lang.Object
-
- java.lang.Enum<StandardIntrospectionResponse.Action>
-
- com.authlete.common.dto.StandardIntrospectionResponse.Action
-
- All Implemented Interfaces:
Serializable
,Comparable<StandardIntrospectionResponse.Action>
- Enclosing class:
- StandardIntrospectionResponse
public static enum StandardIntrospectionResponse.Action extends Enum<StandardIntrospectionResponse.Action>
The next action that the implementation of the introspection endpoint of the authorization server should take.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_REQUEST
The request from the resource server was wrong.INTERNAL_SERVER_ERROR
The request from your system to Authlete (StandardIntrospectionRequest
) was wrong or an error occurred in Authlete.JWT
The request from the resource server was valid and a JWT is returned to the resource server as the introspection response.OK
The request from the resource server was valid.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StandardIntrospectionResponse.Action
valueOf(String name)
Returns the enum constant of this type with the specified name.static StandardIntrospectionResponse.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 StandardIntrospectionResponse.Action INTERNAL_SERVER_ERROR
The request from your system to Authlete (StandardIntrospectionRequest
) was wrong or an error occurred in Authlete. The introspection endpoint of your authorization server should return"500 Internal Server Error"
to the resource server.
-
BAD_REQUEST
public static final StandardIntrospectionResponse.Action BAD_REQUEST
The request from the resource server was wrong. The introspection endpoint of your authorization server should return"400 Bad Request"
to the resource server.
-
OK
public static final StandardIntrospectionResponse.Action OK
The request from the resource server was valid. The introspection endpoint of your authorization server should return"200 OK"
to the resource server.
-
JWT
public static final StandardIntrospectionResponse.Action JWT
The request from the resource server was valid and a JWT is returned to the resource server as the introspection response. The introspection endpoint of your authorization server should return"200 OK"
to the resource server.- Since:
- 3.76, Authlete 3.0
-
-
Method Detail
-
values
public static StandardIntrospectionResponse.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 (StandardIntrospectionResponse.Action c : StandardIntrospectionResponse.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 StandardIntrospectionResponse.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
-
-