As the first retired military officer to assume the office, Rajapaksa has pledged to give national security a priority.