Spring密码编码器

时间:2013-09-07 07:47:10

标签: spring password-encryption

我想使用新界面:

org.springframework.security.crypto.password.PasswordEncoder;

而不是弃用:

org.springframework.security.authentication.encoding.PasswordEncoder;

但是没有弃用的ShaPasswordEncoder不满足作为autowire bean(即不支持这个新接口的方法)

org.springframework.security.authentication.encoding.ShaPasswordEncoder;

有没有替代或新课程?似乎有三种实现,SHA只有256而不是由ShaPasswordEncoder

提供的512

或者我只是直接注入课程?

相关问题