[jboss-dev-forums] [Design of EJB 3.0] - Re: Security Regressions in EJB3 TestSuite

anil.saldhana@jboss.com do-not-reply at jboss.com
Sun Mar 30 11:27:49 EDT 2008


"ALRubinger" wrote : I couldn't find replacements for the following:
  | 
  | SecurityAssociation.getPrincipal();
  |   | SecurityAssociation.getCallerPrincipal();
  | 
  | ...are there?
  | 
  | S,
  | ALR

Your tests should just be setting the principal/cred. Why are you trying to get the callerPrincipal from SecurityAssociation?   What happened to ejbcontext.getCallerPrincipal? When will the spaghetti ejb3 layer look edible? :)

Regarding getting the latest principal on the securitycontext, the api that you quote looks good.  But I still am at a loss as to why you are trying to retrieve the principal/caller principal in the tests.  Please point me to the tests that are trying to do this. :)

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

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



More information about the jboss-dev-forums mailing list