Section 1021. ... Congress affirms that the authority of the President to use all necessary and appropriate force pursuant to the Authorization for Use of Military Force ... includes the authority for the Armed Forces of the United States to detain covered persons pending disposition under the law of war. ... Section 1022. . ... Except as provided in paragraph , the Armed Forces of the United States shall hold a person described in paragraph who is captured in the course of hostilities authorized by the Authorization for Use of Military Force ... in military custody pending disposition under the law of war. (en)