public boolean isAnonymous() {
        return username == null;
    }
Returns true if this AuthToken is the Anonymous auth token.

@return true if this token is the anonymous AuthToken.
xmppserver/src/main/java/org/jivesoftware/openfire/auth/AuthToken.java