public AuthToken getAuthToken() {
        return session == null ? null : (AuthToken)session.getAttribute("jive.admin.authToken");
    }
@return the auth token; redirect to the login page if an auth token is not found.
xmppserver/src/main/java/org/jivesoftware/util/WebManager.java