124125126127128129130131132133
if (subject != null) { reply.set(SecurityParts.Roles, subject.toRolesString()); reply.set(SecurityParts.Name, subject.getUsername()); } reply.sendNowWith(bus); } }); } }
122123124125126127128129130131132
public void callback(Message message) { stats.registerReceivedMessage(message); statsPanel.updateStatsLabels(stats); } }); sendable.sendNowWith(bus); stats.registerSentMessage(sendable.getMessage()); } statsPanel.updateStatsLabels(stats);
112113114115116117118119120121122
175176177178179180181182183184185
124125126127128129130131132133134
if (subject != null) { reply.set(SecurityParts.Roles, subject.toRolesString()); reply.set(SecurityParts.Name, subject.getUsername()); } reply.sendNowWith(bus); } }); }
134135136137138139140141142143144
} /** * Transmit the message back to the client. */ successfulMsg.sendNowWith(bus); } catch (LoginException e) { /** * The login failed. How upsetting. Life must go on, and we must inform the client of the * unfortunate news.
9293949596979899100101102
challenge.set(CredentialTypes.Password, credentials[i].getValue()); break; } } challenge.sendNowWith(ErraiBus.get()); break; case AuthenticationNotRequired: notifyLoginClient(msg); break;