The commissioner and each deputy commissioner shall take the oath provided by law for public officers.