(1) A public officer or juror who commits the offence of wilful oppression in respect of the discharge of the duties of his or her office, is liable on conviction on indictment to imprisonment for 5 years.
(2) A public officer or juror commits the offence of wilful oppression in respect of the discharge of the duties of his or her office if he or she intentionally commits any excess or abuse of his or her authority, to the injury of the public or of any person.