@Override
    public boolean abort() throws LoginException
    {
        if (debug)
        {
            LOG.debug("aborting authentication");
        }

        if (!succeeded)
        {
            return false;
        }

        if (!commitSucceeded)
        {
            resetData();
            succeeded = false;
        }
        else
        {
            logout();
        }

        return true;
    }