Any bond, undertaking, recognizance, guaranty or other obligation required or permitted to guarantee the performance of any act, duty or obligation, or the refraining from any act, required or permitted, by law, or the charter, ordinances, rules or regulations of any municipality, board, body, organization, court or public officer, to be made, given, tendered or filed with surety or sureties, may be executed by any company authorized under the laws of this state to carry on the business specified in paragraph "g" of section 17:17-1 of this title. The execution by the company of the bond, undertaking, recognizance, guaranty or other obligation shall be, in all respects, a full and complete compliance with the requirements of every law, charter, ordinance, rule or regulation that the same be executed by one surety, or one or more sureties, or that the surety be residents, householders or freeholders, or either, or both, or possess any other qualification, and all courts, judges, heads of departments, boards, bodies, municipalities and public officers of every character shall accept and treat the same as conforming to, and fully complying with, the requirements of every such law, charter, ordinance, rule or regulation.
The premium for a bond given by a public official of the state, or a county, municipality or school district, pursuant to a law or ordinance, shall be paid by the state, county, municipality or school district, as the case may be.
N.J.S. § 17:31-1