[jboss-user] [JBoss Seam] - Re: Seam 1.1.5, authentication, and writing an authenticatio

gavin.king@jboss.com do-not-reply at jboss.com
Sat Feb 3 22:07:32 EST 2007


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



More information about the jboss-user mailing list