oath of office

an official promise by a person who has been elected to a public office to fulfill the duties of the office according to the law