A public officer or juror who is guilty of extortion in respect of the discharge of the duties of his or her office, is liable on conviction on indictment to imprisonment for 7 years.