Security measures are applied according to the law in force at the time when they are to be carried out.