A person convicted of violating section 642.13 is disqualified from holding the office of sheriff, jailer, police officer, marshal, or keeper of any jail or lockup for a period of six years.