2 Replies Latest reply on Mar 16, 2006 4:33 PM by kosl

    basic problem

    kosl

      I have read all the wiki and everything and I still don't know how to get some basic information. I would like to be able to get the name of the authenticated user or check his role. How to do that ??

      In the DVD example it is done like that :

       String user = org.jboss.security.SecurityAssociation.getPrincipal().getName();
      


      I'm not sure if it's the right way. If yes then how can I check wheter the user is in some role ?

      thx in advance for any answers.

      Karol