A magistrate is a law officer who administers the law in a court. The term varies in its use in different countries.
Magistrate