Huang has confirmed he had been having an affair with a woman accused of spying for China.