Secret courts are a shame. Secret directives, on the other hand, can be compatible with the rule of law and an independent judiciary, provided they're lawfully authorized and can be challenged in a court.
At the end of the day, a private citizen (or foreign government) can challenge the U.S. government on equal grounds in a fair court. That is not the case in China.