May 22nd, 2009, 02:52 PM
Saving user details
I have the following question: how can I "save" the user data (like id, password, other relevant informations) , to retrieve inside other classes, when it needed. I was focusing in UserDetails interface and your applications to solve that problem, but i'm not sure. I hope you understand my doubt. Thanks in advance
I'm using Spring MVC 2.5 and Spring Security 2.0
May 24th, 2009, 10:16 PM
You can try to use SecurityContextHolder.getContext().getAuthenticati on() in the class to get more information except password as it is protected.
If you want to get info in the jsp, then you can use tab lib which provided by spring security. E.g. <security:authentication property="name" />
Tags for this Thread