The governor for the time being of this state, and every person who shall be appointed or elected to any office, legislative, executive or judicial, under the authority of this state, or to any office in the militia thereof, and every counselor, solicitor and attorney at law, shall, before he enters upon the execution of his trust, office or duty, take and subscribe the oath of allegiance prescribed by section 41:1-1 of this title.
N.J.S. § 41:1-2