• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Security 3: Salting password issue

 
Rohit Bhal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Rohit Bhal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic