当前位置:网站首页>AuthorizingRealm简介说明
AuthorizingRealm简介说明
2022-07-26 10:56:00 【qq_25073223】
转自:
下文笔者将讲述AuthorizingRealm的相关简介说明,如下所示
shiro中设置realm通常会继承AuthorizingRealm 并实现getAuthenticationInfo和getAuthorizationInfo方法 来完成登录和权限的验证 GetAuthorizationInfo
该方法主要是用于当前登录用户授权
1.调用SecurityUtils.getSubject().isPermitted(String str)方法时会调用
2.在@Controller 上@RequiresRoles("admin")在方法上加注解的时候调用
3.[@shiro.hasPermission name = "admin"][/@shiro.hasPermission]或
<shiro:hasPermission name="admin"></shiro:hasPermission>
在页面上加shiro标签的时候,即进这个页面的时候扫描到有这个标签的时候调用
GetAuthenticationInfo
该方法是进行用户验证的。
调用currUser.login(token)方法时会调用doGetAuthenticationInfo方法
边栏推荐
- 232. Implement queue with stack
- During the interview, how did the interviewer evaluate the level of rust engineers?
- @The real difference and usage between validated and @valid
- The assignment of member pointer defined in C structure and the use of structure pointer as member function parameter
- Synchronized与ReentrantLock
- 菜鸟看源码之HashTable
- -bash: ./build.sh: /bin/bash^M: 坏的解释器: 没有那个文件或目录
- The combination of pytest confitest.py and fixture
- Bash shell learning notes (4)
- Newbie sees the source code arraydeque
猜你喜欢
随机推荐
SparseArray of the source code for novices
In depth interpretation of happens before principle
Bash shell learning notes (III)
Wireshark basic tutorial Ethernet frame analysis.
win10 1903 笔记本开热点出现蓝屏问题
mysql20210906
Kali view IP address
How to assemble a registry?
Bash shell学习笔记(二)
Sword finger offer (twenty): stack containing min function
BigDecimal's addition, subtraction, multiplication and division, size comparison, rounding up and down, and BigDecimal's set accumulation, judge whether BigDecimal has decimal
Newbie sees the source code arraydeque
1837. Sum of digits under k-ary representation
Le audio specification overview
List and dictionary instance applications (※)
如何组装一个注册中心?
1748. Sum of unique elements
Bigdecimal的加减乘除、比较大小、向上向下取整 和 Bigdecimal的集合累加、判断BigDecimal是否有小数
@NotBlank、@NotNull 、@NotEmpty 区别和使用
Capture ZABBIX performance monitoring chart with selenium









