I think I like the following option best:

class Authenticator()
  | {
  | 
  |     @In Identity identity;
  | 
  |     public boolean authenticate()
  |     {
  |         String pw = identity.getPassword();
  |         String un = identity.getUsername();
  |         ....
  |         identity.setRoles(roles);
  |         return true;
  |     }
  | 
  | 
  | }

This is consistent with how Actor works:

class Authenticator()
  | {
  | 
  |     @In Identity identity;
  |     @In Actor actor;
  | 
  |     public boolean authenticate()
  |     {
  |         String pw = identity.getPassword();
  |         String un = identity.getUsername();
  |         ....
  |         identity.setRoles(roles);
  |         actory.setId(un);
  |         return true;
  |     }
  | 
  | 
  | }

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010626#4010626

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010626
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to