当前位置:网站首页>Introduction to authoringrealm
Introduction to authoringrealm
2022-07-26 11:11:00 【qq_ twenty-five million seventy-three thousand two hundred and 】
from :
The author will talk about it below AuthorizingRealm Relevant introduction and description of , As shown below
shiro Set in realm It's usually inherited AuthorizingRealm And implement getAuthenticationInfo and getAuthorizationInfo Method To complete login and permission verification GetAuthorizationInfo
This method is mainly used to authorize the current login user
1. call SecurityUtils.getSubject().isPermitted(String str) Method will call
2. stay @Controller On @RequiresRoles("admin") When you annotate a method, call
3.[@shiro.hasPermission name = "admin"][/@shiro.hasPermission] or
<shiro:hasPermission name="admin"></shiro:hasPermission>
Add... To the page shiro When labeling , That is, it will be called when the tag is scanned when entering this page
GetAuthenticationInfo
This method is used for user authentication .
call currUser.login(token) Method will call doGetAuthenticationInfo Method
边栏推荐
- 复现php一句话木马
- 看源码之LinkedList
- Postman export import
- Bash shell learning notes (I)
- Wireshark basic tutorial Ethernet frame analysis.
- What are the biz layer and manager layer in the company project
- Connection between PLC and servo motor
- Relationship between pixels and memory
- Classified by the number of 1 in binary number
- easyui03
猜你喜欢

pytest conftest.py和fixture的配合使用

3dunity game project practice - first person shooting game

Novice source code hashtable

Newbie sees the source code arraydeque

Le audio specification overview

Many people don't know whether they are looking for Kanban software or Kanban software

菜鸟看源码之ArrayList

Bash shell learning notes (V)

Tutorial of putty

菜鸟看源码之HashTable
随机推荐
Stringing of macro parameters and connection of macro parameters in C language
数据可视化-《白蛇2:青蛇劫起》(2)
mysql学习笔记
看源码之LinkedList
104. Maximum depth of binary tree
Linkedblockingqueue of novice source code
AuthorizingRealm简介说明
JVM基本概念及内存管理模型
Analysis of C # delegation and anonymous method
-bash: ./build. Sh: /bin/bash^m: bad interpreter: no that file or directory
Bash shell学习笔记(六)
脉冲波形的产生与变换
1748. Sum of unique elements
easyui02
What are the biz layer and manager layer in the company project
企鹅龙(DRBL)无盘启动+再生龙(clonezilla)网络备份与还原系统
Pytest execution rules_ Basic usage_ Common plug-ins_ Common assertions_ Common parameters
Le audio specification overview
How to assemble a registry?
SCADA和三大工业控制系统PLC、DCS、FCS