It only concerns aliens and was kneecapped by Braden v. 30th Judicial Circuit Court. Note, aliens who are engaged in war against the United States. Not American citizens.
"We hold that the Constitution does not confer a right of personal security or an immunity from military trial and punishment upon an alien enemy engaged in the hostile service of a government at war with the United States."