Class PermissionAnnotationMethodInterceptor
java.lang.Object
org.apache.shiro.aop.MethodInterceptorSupport
org.apache.shiro.aop.AnnotationMethodInterceptor
org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor
org.apache.shiro.authz.aop.PermissionAnnotationMethodInterceptor
- All Implemented Interfaces:
MethodInterceptor
Checks to see if a @
RequiresPermissions annotation is declared,
and if so, performs a permission check to see if the calling Subject is allowed to call the method.- Since:
- 0.9
-
Constructor Summary
ConstructorsConstructorDescriptionDefault no-argument constructor that ensures this interceptor looks forRequiresPermissionsannotations in a method declaration. -
Method Summary
Methods inherited from class org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor
assertAuthorized, invokeMethods inherited from class org.apache.shiro.aop.AnnotationMethodInterceptor
getAnnotation, getHandler, getResolver, setHandler, setResolver, supportsMethods inherited from class org.apache.shiro.aop.MethodInterceptorSupport
getSubject
-
Constructor Details
-
PermissionAnnotationMethodInterceptor
Default no-argument constructor that ensures this interceptor looks forRequiresPermissionsannotations in a method declaration. -
PermissionAnnotationMethodInterceptor
- Parameters:
resolver-- Since:
- 1.1
-