It's not a secret anymore!
The moose likes Spring and the fly likes Spring Security 3: Salting password issue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Spring Security 3: Salting password issue
 
Similar Threads
[Spring Security] problem with UserDetailsService implementation
No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional
[Spring Security] SHA-512 , UserDetailService, User - authentication not working
Spring : how to redirect to login page on session timeout
Preauthentication problem