-
May 22nd, 2009, 02:52 PM
#1
Saving user details
Hi everyone.
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
P.S.:
I'm using Spring MVC 2.5 and Spring Security 2.0
-
May 24th, 2009, 10:16 PM
#2
Hi ,
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules