In any private action arising under this chapter that is certified as a class action pursuant to the Federal Rules of Civil Procedure, the court may require an undertaking from the attorneys for the plaintiff class, the plaintiff class, or both, or from the attorneys for the defendant, the defendant, or both, in such proportions and at such times as the court determines are just and equitable, for the payment of fees and expenses that may be awarded under this subsection.