shiro securityManager分析
接口SecurityManager,继承了接口Authorizer,SessionManager,Authenticator
接口CachingSecurityManager增加了缓存和日志功能和设置 EventBus
The EventBus to use to use to publish and receive events of interest during Shiro's lifecycle
RealmSecurityManager增加设置读取realm方法
抽象类AuthenticatingSecurityManager 支持使SecurityManager封装一个Authenticator实例,把对验证的操作都委托给该实例。
抽象类AuthorizingSecurityManager支持使SecurityManager封装一个authorizer实例,把对权限验证的操作都委托给该实例
sesseionSecurityManager支持使SecurityManager封装一个sessionManager实例,把对session的操作都委托给该实例
最后来个整体类图: