§ 1031. Administration of oath

The President, the Vice-President, the Secretary of Defense, any commissioned officer, and any other person designated under regulations prescribed by the Secretary of Defense may administer any oath—
(1) required for the enlistment or appointment of any person in the armed forces; or
(2) required by law in connection with such an enlistment or appointment.