步骤
1、构建 securityManager;
2、主体(Subject)提交认证请求;
securityUtils.getSubject 获取主体; 然后执行login 方法;
3、2方法调用 securityManager.login 方法认证;
4、 3方法调用authenticatior.authenticate 方法认证;
5、 4 获取realms 然后通过realms 获取数据 进而验证;
步骤
1、构建 securityManager;
2、主体(Subject)提交认证请求;
securityUtils.getSubject 获取主体; 然后执行login 方法;
3、2方法调用 securityManager.login 方法认证;
4、 3方法调用authenticatior.authenticate 方法认证;
5、 4 获取realms 然后通过realms 获取数据 进而验证;