Two former executives for a foreign defense contractor were sentenced in San Diego Friday to prison terms in connection with a scheme through which the company received proprietary military information from Navy officials in exchange for cash, luxury hotel stays and the services of prostitutes.