[shiro]CustomCredentialsMatcher使用spring
由于使用时间一次性密码方式需要自定义验证方式,查来查去也不知道怎么在CustomCredentialsMatcher内部使用spring的bean
研究了一下曲线实现了
将SimpleAuthenticationInfo传入需要使用的bean,在CustomCredentialsMatcher使用
List list = info.getPrincipals().asL
原创
2016-01-17 17:31:29 ·
377 阅读 ·
0 评论