I'm not certain I follow what you are looking for, but in the primary key for any file MUST be unique.
Given this; if the full primary key is part of an alternate key, that portion of the alternate key will be unique and thus logically you will never have duplicate alternate keys regardless of whether you tell the system they are unique or not.