SecurityManager.getUserName

Returns the user name when a user is logged on or null when no user is logged on.

returns java.lang.String