It usually requires a period of permanent residence, a citizenship test, and an oath of allegiance.