开发者

Spring form get password entered

jsp i have j_username ,j_password, 开发者_如何学运维this will call my UserDetailsServiceImpl.loadUserByUsername(string username) , how to authenticate the password ?


You don't authenticate the password yourself, Spring Security compares the UserDetails object you return from loadUserByUsername() (which contains a password field) with the credentials presented by the user.

This allows the authentication logic to be abstracted away and not handled in code, for example if you want to change to using hashes, salts, etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜