A. A bondholder, a holder of any coupons attached to bonds, or a trustee under a trust agreement securing the bonds may sue:
(1) To protect and enforce rights under state law or a trust agreement.
(2) To enforce and compel the performance of duties by an authority or its officer, employee, or agent that this Subtitle or a trust agreement requires, including imposing rates, rents, fees, and charges that the trust agreement requires to be imposed.
B. The rights under this Section are subject to any trust agreement.