143144145146147148149150151152153
if (subject != null) { reply.set(SecurityParts.Roles, subject.toRolesString()); reply.set(SecurityParts.Name, subject.getUsername()); } reply.sendNowWith(bus); } }); configurator.configure(this); dispatcher = configurator.getConfiguredDispatcher();
130131132133134135136137138139140
} /** * 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.
126127128129130131132133134135136
if (subject != null) { reply.set(SecurityParts.Roles, subject.toRolesString()); reply.set(SecurityParts.Name, subject.getUsername()); } reply.sendNowWith(bus); } }); }
9293949596979899100101102
challenge.set(CredentialTypes.Password, credentials[i].getValue()); break; } } challenge.sendNowWith(ErraiBus.get()); break; case AuthenticationNotRequired: notifyLoginClient(msg); break;
134135136137138139140141142143144
949596979899100101102103104
124125126127128129130131132133
if (subject != null) { reply.set(SecurityParts.Roles, subject.toRolesString()); reply.set(SecurityParts.Name, subject.getUsername()); } reply.sendNowWith(bus); } }); } }