Shiro Java Annotations List
Shiro Java Annotations List
小鲅鱼 发表于4年前
Shiro Java Annotations List
  • 发表于 4年前
  • 阅读 22
  • 收藏 0
  • 点赞 0
  • 评论 0

【腾讯云】如何购买服务器最划算?>>>   

Below are a list of the different Shiro annotations you can use in your application.

  • RequiresAuthentication - Requires the current Subject to have been authenticated during their current session for the annotated class/instance/method to be accessed or invoked
  • RequiresGuest - Requires the current Subject to be a "guest", that is, they are not authenticated or remembered from a previous session for the annotated class/instance/method to be accessed or invoked.
  • RequiresPermissions - Requires the current executor's Subject to imply a particular permission in order to execute the annotated method. If the executor's associated Subject determines that the executor does not imply the specified permission, the method will not be executed.
  • RequiresRoles - Requires the currently executing Subject to have all of the specified roles. If they do not have the role(s), the method will not be executed and an AuthorizationException is thrown.
  • RequiresUser - Requires the current Subject to be an application user for the annotated class/instance/method to be accessed or invoked.
共有 人打赏支持
小鲅鱼
粉丝 70
博文 74
码字总数 17470
×
小鲅鱼
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: