[jbossws-dev] [Design of JBoss Web Services] - Re: UsernameToken authentication and authorization for POJO

anil.saldhana@jboss.com do-not-reply at jboss.com
Mon Apr 28 13:06:25 EDT 2008


Something along the lines of:

  | 
  | Object obj = ctx.lookup("java:comp/env/security/securityMgr");
  | AuthenticationManager am = (AM)obj;
  | am.isValid(Principal,Object);
  | 
  | //Do generic authz
  | RealmMapping rm = (RM)obj;
  | rm.doesUserHaveRole(.....)
  | 

should work.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147295



More information about the jbossws-dev mailing list