Provides the name for a given principal. Default implementation would be to return principal.getName().
It is possible to test for a certain implementation and use method fo these implementation
in order to return a more specific name for the given principal.
Parameters:
principal - the principal
Returns:
the name of the principal. Not allowed to be null.