A judge has rejected a disgraced police officer’s bid for anonymity.