Retrieving a Registered Username

The getRegisteredUserName() method is used retrieve the correct case username, which may be independent of the username typed during login.

/**
 * Gets the correct casing for this user independent of mixed
 * case which may have been typed in by the logged in user.
 *
 * @param identifier The identifier of the external user,
 * whose casing may not match that of the persisted identifier
 * for the user.
 *
 * @return The actual case for this user, before its case has
 * been modified by external factors.
 *
 * @throws AppException Generic Exception Signature.
 * @throws InformationalException Generic Exception Signature.
 */
 public String getRegisteredUserName(final String identifier)
   throws AppException, InformationalException;

The default implementation for this method should return the username that has been provided. It is only if the curam.security.casesensitive has been set to false that this method may need to change the case of the username returned.

Note: Where the curam.security.casesensitive property has been set to false and is required for external users, it is the responsibility of all methods in this interface to handle any case specific requirements.