You can be granted refugee status if you entered through safe third countries, i.e. did not arrive in Germany directly by plane. Persons who are eligible for asylum and refugee status receive a residence permit for three years.