 Justifying conduct which is required or authorized by the law defining the duties or functions of a public officer, the law governing the armed services or lawful conduct of war, or any other provision of law imposing a public duty.