文档章节

Shiro Java Annotations List

leon_rock
 leon_rock
发布于 2014/06/04 23:28
字数 167
阅读 25
收藏 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.

本文转载自:http://shiro.apache.org/java-annotations-list.html

共有 人打赏支持
leon_rock

leon_rock

粉丝 72
博文 75
码字总数 17541
作品 0
大连
高级程序员
私信 提问
centos7 64位 nexus访问报错

jvm 1 | 2017-08-03 15:28:29,077+0800 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Started jvm 1 | 2017-08-03 15:28:30,404+0800 IN......

hours11
2017/08/03
123
0
Kotlin Compiler Plugins : All-open , Kotlin-spring,No-arg,Kotlin-jpa

Compiler Plugins All-open compiler plugin Kotlin has classes and their members by default, which makes it inconvenient to use frameworks and libraries such as Spring AOP that re......

程序员诗人
2017/10/30
0
0
Apche Shiro 1.2.4 发布,轻量安全框架

Apache Shiro 1.2.4 发布了,改进记录包括: Bug [SHIRO-421] - Unable to set long timeouts on HttpServletSession [SHIRO-442] - CAS client fails with multi-valued SAML attributes [......

NestleCaau
2015/08/01
4.3K
20
OpenXava 4.1.1 发布,Java的Web开发套件

OpenXava是一个让使用XML与Java来开发J2EE商业应用程序变得简单的框架.OpenXava不使用常见的MVC架构,它是一个JPA应用程序引擎,你能够通过JDK5.0注解或XML描述对象-关系表的映射关系,并将运...

红薯
2011/03/01
253
0
Kotlin M13 发布,基于 JVM 的编程语言

Kotlin M13 发布,此版本更新内容如下: Compiler daemon for faster compilation; properties to support dependency injection and other frameworks; classes for expressing closed hie......

oschina
2015/09/25
1K
17

没有更多内容

加载失败,请刷新页面

加载更多

嵌入式应用选择合适的微控制器

准备所需硬件接口列表 使用微控制器的基本硬件框图,准备一份微控制器需要支持的所有外设接口的列表。微控制器中有两种常见的接口类型需要列出。第一种是通信接口,这些是外围设备,如USB,S...

linuxCool
19分钟前
2
0
Group by使用

概述 GROUP BY我们可以先从字面上来理解,GROUP表示分组,BY后面写字段名,就表示根据哪个字段进行分组,如果有用Excel比较多的话,GROUP BY比较类似Excel里面的透视表。 GROUP BY必须得配合...

小橙子的曼曼
30分钟前
3
0
机械臂写中文

Make Me a Hanzi https://www.skishore.me/makemeahanzi/ 使用uArm Swift Pro机械臂写中文-毛笔字 https://github.com/makelove/Robot_Arm_Write_Chinese...

itfanr
42分钟前
4
0
OSChina 周三乱弹 —— 孤独到都和病毒发生了感情了

Osc乱弹歌单(2019)请戳(这里) 【今日歌曲】 @-冰冰棒- :#今日歌曲推荐# 逃跑计划《一万次悲伤 (Live)》 《一万次悲伤 (Live)》- 逃跑计划 手机党少年们想听歌,请使劲儿戳(这里) 现在...

小小编辑
今天
1K
14
test

//// main.c// Test//// Created by 吕颖 on 2019/1/16.// Copyright © 2019年 carmen. All rights reserved.//#include <stdio.h>#include <stdlib.h>#include <t......

carmen-ly
今天
3
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部