shiro认证
1.特点
shiro认证只是对用户名的认证,通过doAuthenticate()方法来验证
2.doAuthenticate方法
此方法是用来获取用户名进行认证的
3.doCredentialsMatch()方法
此方法是获取密码的
自定义realm(数据源),继承AuthorizingRealm 类
(先认证后授权)
其中,
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authenticationToke
原创
2020-11-02 20:39:53 ·
153 阅读 ·
0 评论