Spring Security DB Authentication w/Hibernate and hashed passwords?
        Posted  
        
            by Seth
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Seth
        
        
        
        Published on 2010-04-27T21:59:28Z
        Indexed on 
            2010/04/27
            22:03 UTC
        
        
        Read the original article
        Hit count: 808
        
I'm trying to set up spring security 3 to authenticate users against my hibernate 3 database. I'm storing only sha1 hashes of the passwords in the database (not plaintext).
I've looked at this and this, which tell me to implement my own UserDetailsService. Unfortunately, the UserDetails that loadUserByUsername spits out seem to need the plaintext password, which I don't have.
How is this usually handled? Can Spring Security actually do what I need here? Am I missing something?
© Stack Overflow or respective owner