Is Huawei a National Security Threat to US and its Allies?

Huawei’s president has said that he will not assist China in spying on the US, even if required to do so by law. But would he really not cooperate with the Chinese authorities when faced with the prospect of going to jail or worse?