AuthRealm类下重载的方法AuthenticationInfo,然后这个SimpleAuthenticationInfo()具体怎么理解?

来源:3-9 基于Apache Shiro权限管理Case实操-1

72fc5c0f8317

2018-01-23

写回答

2回答

Jimin

2018-01-25

你好, 下图是SimpleAuthenticationInfo和AuthenticationInfo的关系图,SimpleAuthenticationInfo可以理解为是AuthenticationInfo的一种实现方式。传入用户名密码等信息就可以完整基本的认证处理。


//img.mukewang.com/szimg/5a6970f1000178c606130235.jpg

祝你学习愉快~

0
1
72fc5c0f8317
非常感谢!
2018-01-29
共1条回复

72fc5c0f8317

提问者

2018-01-23

return new SimpleAuthenticationInfo(user,user.getPassword(),this.getClass().getName());

0
0

Java开发企业级权限管理系统

源于企业真实Java项目,涉及大量高级技巧,覆盖权限管理开发技术

2261 学习 · 1347 问题

查看课程