Rights granted under international law cannot be taken away through war, threats: Iranian president