124125126127128129130131132133
if (subject != null) { reply.set(SecurityParts.Roles, subject.toRolesString()); reply.set(SecurityParts.Name, subject.getUsername()); } reply.sendNowWith(bus); } }); } }
132133134135136137138139140141142
} /** * 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;
134135136137138139140141142143144
125126127128129130131132133134
127128129130131132133134135136137
if (subject != null) { reply.set(SecurityParts.Roles, subject.toRolesString()); reply.set(SecurityParts.Name, subject.getUsername()); } reply.sendNowWith(bus); } }); }
123124125126127128129130131132
131132133134135136137138139140141