public String getUsername() {
        return username;
    }
Returns the username associated with this AuthToken. A {@code null} value
means that the authenticated user is anonymous.

@return the username associated with this AuthToken or null when using an anonymous user.
xmppserver/src/main/java/org/jivesoftware/openfire/auth/AuthToken.java