Espionage trials risk revealing the sometimes highly confidential methods by which evidence had been gathered against the accused.