public static SessionEvent createAuthFailureEvent(Session session, String user,
            String resource)
    {
        return new SessionEvent(session, SESSION_AUTH_FAILURE,
                "User: " + user + " Resource: " + resource);
    }
Create an event associated with the failure of a session to authenticate.

@param session the session that made the attempt
@param user the user that made the attempt
@param resource the resource used for the attempt
@return an event representing the connection event
xmppserver/src/main/java/org/jivesoftware/openfire/audit/SessionEvent.java