Pātuhitia tēnei: International legitimacy and the politics of security