0 Replies Latest reply on Nov 19, 2012 9:29 AM by Garvit Jain

    Don't able to get the  SecurityAssociation.getPrincipal() value.

    Garvit Jain Newbie

      Hi all,


      I am trying to get the value of  SecurityAssociation.getPrincipal().getName value in my application after sucessful authentication, i am using Jaas secuurity for authentication.

      After sucessful authentication this value of  SecurityAssociation.getPrincipal() is comeing null.


      Please let me know if anyone have any idea regarding this.



      String userName = SecurityAssociation.getPrincipal().getName();

      System.out.println("Username: " + userName);


      filterChain.doFilter(servletRequest, servletResponse);