The recurring theme in the articles of this question is a re-emphasis that law is for the common good. It must serve a multitude of people, procure the common good by many actions and be intended to last from generation to generation. This requires a degree of generality which elicits some comments from Thomas:
The just law binds in conscience, but what is an unjust law to which my conscience is not bound? An unjust law is one which is contrary either to human or Divine good:
A human law is contrary to human good if it is:
A human law is contrary to Divine good if it is contrary to either the natural law or the Divine positive law. In our times such laws rarely require acts such as idolatory. More often the human law allows acts which are contrary to the Divine good but do not demand action, such as laws allowing homosexual marriages. These are not just laws: they are opposed to both the Divine good and the common good and "as Augustine says (De Lib. Arb. i, 5) 'a law that is not just, seems to be no law at all'" (Article 4).