Enum DeviceAuthorizationResponse.Action

    • Enum Constant Detail

      • OK

        public static final DeviceAuthorizationResponse.Action OK
        The device authorization request is valid. The authorization server implementation should return a successful response with 200 OK and application/json to the client application.
      • BAD_REQUEST

        public static final DeviceAuthorizationResponse.Action BAD_REQUEST
        The device authorization request is invalid. The authorization server implementation should return an error response with 400 Bad Request and application/json to the client application.
      • UNAUTHORIZED

        public static final DeviceAuthorizationResponse.Action UNAUTHORIZED
        Client authentication of the device authorization request failed. The authorization server implementation should return an error response with 401 Unauthorized and application/json to the client application.
      • INTERNAL_SERVER_ERROR

        public static final DeviceAuthorizationResponse.Action INTERNAL_SERVER_ERROR
        The API call from the authorization server implementation was wrong or an error occurred on Authlete side. The authorization server implementation should return an error response with 500 Internal Server Error and application/json to the client application.
    • Method Detail

      • values

        public static DeviceAuthorizationResponse.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 (DeviceAuthorizationResponse.Action c : DeviceAuthorizationResponse.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 DeviceAuthorizationResponse.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 name
        NullPointerException - if the argument is null