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.
加载中,请稍侯......
精彩评论