shiro主要方法笔记

44 阅读1分钟

1、最终用户名比较  SimpleAccountRealm 中的 doGetAuthenticationInfo 在这个方法中完成

2、最终密码校验  AuthenticatingRealm 中的 assertCredentialsMatch

 

总结

AuthenticatingRealm           认证realm              doGetAuthenticationInfo

AuthorizingRealm                 授权realm             doGetAuthorizationInfo