When may the president suspend the privilege of the writ of habeas corpus?

President’s Power to Suspend the Privilege of the Writ of Habeas Corpus

Two conditions are necessary in order that the President may suspend the privilege of the writ:

1. There must be invasion or rebellion; and

2. The public safety must require the suspension.