A judge has ruled that a former police officer accused of illegally sharing information regarding a Sinn Fein MLA and former UTV presenter cannot be identified due to threats against him.