return;
}
}
setStatus(SessionStatus.authorized);
mode = SessionMode.ready;
eventBus.fireEventFromSource(new AuthorizationResultEvent(credentials), this);
connection.restartStream();
bindResource(credentials.isAnoymous() ? null : credentials.getURI().getResource());
} else if ("failure".equals(name) && XmppNamespaces.SASL.equals(xmlns)) {
setStatus(SessionStatus.notAuthorized);
mode = SessionMode.offline;