A holder of bonds issued under this chapter or of coupons attached to them, and a trustee under a trust agreement or resolution authorizing the issuance of the bonds, except as restricted by a trust agreement or resolution, either at law or in equity, may
(1) enforce all rights granted under this chapter, the trust agreement or resolution, or any other contract executed by the corporation under this chapter; and(2) compel the performance of all duties of the corporation required by this chapter or by the trust agreement or resolution.