In order for a war to be just, three things are necessary. First, the authority of the sovereign... Secondly, a just cause... Thirdly... a rightful intention.
"Summa Theologica". Book by Thomas Aquinas (Part II-II, Question 40, Article 1, pp. 1359-1360), 1485.