1. Where the applicant for asylum is in possession of a valid residence permit, the Member State which issued the permit shall be responsible for examining the application for asylum.
2. Where the applicant for asylum is in possession of a valid visa, the Member State which issued the visa shall be responsible for examining the application for asylum, except in the following situations:
(a) if the visa was issued on the written authorization of another Member State, that State shall be responsible for examining the application for asylum. Where a Member State first consults the central authority of another Member State, inter alia for security reasons, the agreement of the latter shall not constitute written authorization within the meaning of this provision.
(b) where the applicant for asylum is in possession of a transit visa and lodges his application in another Member State in which he is not subject to a visa requirement, that State shall be responsible for examining the application for asylum.
(c) where the applicant for asylum is in possession of a transit visa and lodges his application in the State which issued him or her with the visa and which has received written confirmation from the diplomatic or consular authorities of the Member State of destination that the alien for whom the visa requirement was waived fulfilled the conditions for entry into that State, the latter shall be responsible for examining the application for asylum.
3. Where the applicant for asylum is in possession of more than one valid residence permit or visa issued by different Member States, the responsibility for examining the application for asylum shall be assumed by the Member States in the following order:
(a) the State which issued the residence permit conferring the right to the longest period of residency or, where the periods of validity of all the permits are identical, the State which issued the residence permit having the latest expiry date;
(b) the State which issued the visa having the latest expiry date where the various visas are of the same type;
(c) where visas are of different kinds, the State which issued the visa having the longest period of validity, or, where the periods of validity are identical, the State which issued the visa having the latest expiry date. This provision shall not apply where the applicant is in possession of one or more transit visas, issued on presentation of an entry visa for another Member State. In that case, that Member State shall be responsible.