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