7879808182838485868788
challenge.set(CredentialTypes.Password, credentials[i].getValue()); break; } } challenge.sendNowWith(ErraiBus.get()); break; case SecurityResponse: String name = msg.get(String.class, SecurityParts.Name);
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.
103104105106107108109110111112113
if (subject != null) { reply.set(SecurityParts.Roles, subject.toRolesString()); reply.set(SecurityParts.Name, subject.getUsername()); } reply.sendNowWith(bus); } }); configurator.configure(); }
124125126127128129130131132133
if (subject != null) { reply.set(SecurityParts.Roles, subject.toRolesString()); reply.set(SecurityParts.Name, subject.getUsername()); } reply.sendNowWith(bus); } }); } }
132133134135136137138139140141142
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); } }); }