Addition of getUserPrincipal not to force the use of JAAS for the authentication