aspose file tools*
The moose likes Spring and the fly likes Spring Security 3: Salting password issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Security 3: Salting password issue" Watch "Spring Security 3: Salting password issue" New topic
Author

Spring Security 3: Salting password issue

Rohit Bhal
Ranch Hand

Joined: Aug 28, 2007
Posts: 44
Hi

I have got an simple application made in which I am able to register users and authenticate them.
I've got the passwords encoded using and successfully able to authenticate them. I am using Spring 3, Spring Security 3 and Hibernate 3 in my application.
Now I want to salt their passwords with the ID of the user but I am not able to achieve this functionality.
Could someone help me achieve it? I've been trying to do it for quite some time but ain't able to get it done.

Here is the code I've got for salting users with their ID and authenticating them.

xyz-security.xml



UserDetailsAdapter.java


UserDetailsServiceImpl


UserServiceImpl



Could someone help me understand what am I missing here?
Many thanks.


Skip Skipping
Rohit Bhal
Ranch Hand

Joined: Aug 28, 2007
Posts: 44
I was supposed to extend org.springframework.security.core.userdetails.User that implements UserDetails for getting the password salted that way I wanted to. I've got it resolved with the help of skaffman. Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Security 3: Salting password issue
 
Similar Threads
Preauthentication problem
[Spring Security] SHA-512 , UserDetailService, User - authentication not working
[Spring Security] problem with UserDetailsService implementation
Spring : how to redirect to login page on session timeout
No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional