Policeman who led double life as a thug is jailed for 20 years.