Name Identifier contains several attributes.
The first attribute is NameQualifier, which specifies the security domain of the user at the IDP. Security domain is useful to disambiguate different users that use the same name identifier.
The second attribute is SPNameQualifier, which specifies the security domain of the user at the SP.
The third attribute is Format, which specifies how the name identifier should be interpreted.
For example, Email Address name identifier format is used when the user wants to use the same name identifier in IDP and SP. This means that if the user is login as [email protected] in IDP, the user is also login as [email protected] in SP.
Another example, Persistent Identifier is used when the user does not want to use the same name identifier in IDP and SP. This means that a user can login as [email protected] in IDP, but login as [email protected] in SP. This is achieved by using an identifier, such as 12345, agreed by IDP and SP, which is mapped to [email protected] in IDP and mapped to [email protected] in SP. Persistent Identifier is useful when you do not want the SP to know the name identifier of the user in IDP.