right conferred upon it by any law, mortgage, security agreement, contract or other agreement, and to bid for and purchase property which was the subject of such mortgage or security interest at any foreclosure or at any other sale, to acquire or take possession of any such property, and to exercise any and all rights as provided by law for the benefit or protection of the authority or mortgage ho