• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got the solution. Please follow the link in my first post.

PS: I don't see edit button on my previous two posts.
 
reply
    Bookmark Topic Watch Topic
  • New Topic