}
waitFor(CLOSED | WAIT_AUTH, 0);
if (closeFuture.isClosed()) {
throw new IllegalStateException("Session is closed");
}
authFuture = new DefaultAuthFuture(lock);
userAuth = new UserAuthPassword(this, username, password);
setState(ClientSessionImpl.State.UserAuth);
return authFuture;
}
}