First, let’s consider what is just. Justice says, “An eye for an eye.” Therefore, a terrorist who burns another human being alive deserves to, themself, be burned alive. However, we are not dealing with a question of justice. What we are dealing with is a question of preventing the suffering of the innocent and saving the lives of the innocent. The answer to this prevention/saving question is:
As long as there is any hope of preventing the suffering of the innocent and/or saving the lives of the innocent, ANY torture is justified that would be INDISPENSABLE TO ACHIEVING either or both of those goals.