This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes [Spring Security] User Login and Password Encryption (sorted) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "[Spring Security] User Login and Password Encryption (sorted)" Watch "[Spring Security] User Login and Password Encryption (sorted)" New topic
Author

[Spring Security] User Login and Password Encryption (sorted)

Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
I am storing password in encrypted form in DB. Login in my application is handled by Spring Security (JDBCDaoImpl). So I don't know where and How can I do the password encryption. By extending the JDBCDaoImpl? or some other way.

From where Spring Security gets the password that user has entered. Regarding the username it is available in loadUserByUsername method but what about the password?
One more doubt is, I can't understand where does Spring Security validate the user. I looked into JDBCDaoImpl class but couldn't find where it verifies for password.
Anybody have any idea? CrossPost
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
Ok I have implemented UserDetailsService interface in my class but I don't know how to get the password that user has entered.
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
I got the solution. Please follow the link in my first post.

PS: I don't see edit button on my previous two posts.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Spring Security] User Login and Password Encryption (sorted)
 
Similar Threads
Can we have multiple login forms in spring security?
Using spring security filter to authenticate credentials stored in the url
Error while configuring spring security
Edit button is not appearing for some of my posts
Spring security with JUnit