aspose file tools*
The moose likes Spring and the fly likes [Spring Security] SHA-512 , UserDetailService, User - authentication not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "[Spring Security] SHA-512 , UserDetailService, User - authentication not working" Watch "[Spring Security] SHA-512 , UserDetailService, User - authentication not working" New topic
Author

[Spring Security] SHA-512 , UserDetailService, User - authentication not working

Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374






Initially I was using SHA-1 + base64 but now I am switched to SHA-512 and NO base64. SHA-512 returns byte[], so my question is Spring's User class constructor is designed to accept ONLY string as password and that is why I can not make user authentication working. The password in DB is stored as blob. DB is MySQL.

Cross Post
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Spring Security] SHA-512 , UserDetailService, User - authentication not working