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.
System.out.println(SecurityAssociation.getSubject());
String userName = SecurityAssociation.getPrincipal().getName();
System.out.println("Username: " + userName);
filterChain.doFilter(servletRequest, servletResponse);
Thanks
Garvit