This content has been marked as final.
Show 1 reply
-
1. Re: JaasSecurityManager.doesUserHaveRole?
alegomes Oct 21, 2008 9:05 AM (in response to alegomes)Actually,
I was trying to check the user role using JaasSecurityManager.doesuserHaveRole(Principal principal, Principal role) but, as stated in javadoc [1,2], 'principal' argument is ignored, and as long as I don't have any authenticated user, I can't use this method. :-(
[1] http://docs.jboss.org/jbossas/javadoc/4.0.5/security/
[2] principal - - ignored. The current authenticated Subject determines the active user and assigned user roles.