A person is justified in engaging in conduct otherwise prohibited if he has legal authority to do so.
IC 35-41-3-1