The attorney-general may maintain an action, upon his own information or upon the complaint of a private person, against a public officer, civil or military, who has done or suffered an act which by law works a forfeiture of his office.
New York Legal Code