James Comey, whose public persona is based on the image of an upright G-man, has tarnished his own halo.