AuthRealm类下重载的方法AuthenticationInfo,然后这个SimpleAuthenticationInfo()具体怎么理解?
来源:3-9 基于Apache Shiro权限管理Case实操-1

72fc5c0f8317
2018-01-23
写回答
2回答
-
你好, 下图是SimpleAuthenticationInfo和AuthenticationInfo的关系图,SimpleAuthenticationInfo可以理解为是AuthenticationInfo的一种实现方式。传入用户名密码等信息就可以完整基本的认证处理。
祝你学习愉快~
012018-01-29 -
72fc5c0f8317
提问者
2018-01-23
return new SimpleAuthenticationInfo(user,user.getPassword(),this.getClass().getName());
00
相似问题