shiro登录认证流程

1,首先调用subject 的login 提交给SecurityManager
shiro登录认证流程
shiro登录认证流程

2,SecurityManager token交给认证器对象Authenticator(认证管理器)
shiro登录认证流程

3,Authenticator将 token信息交给给Realm
shiro登录认证流程
4,Realm进行响应过的数据库查询操作 并封装交给Authenticator
shiro登录认证流程
5,根据配置的比较方式进行比较
shiro登录认证流程
shiro登录认证流程

shiro登录认证流程