Package org.apache.shiro.authz.aop
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
public class PermissionAnnotationMethodInterceptor extends AuthorizingAnnotationMethodInterceptor
Checks to see if a @RequiresPermissions
annotation is declared, and if so, performs a permission check to see if the callingSubject
is allowed to call the method.- Since:
- 0.9
-
-
Constructor Summary
Constructors Constructor Description PermissionAnnotationMethodInterceptor()
Default no-argument constructor that ensures this interceptor looks forRequiresPermissions
annotations in a method declaration.PermissionAnnotationMethodInterceptor(AnnotationResolver resolver)
-
Method Summary
-
Methods inherited from class org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor
assertAuthorized, invoke
-
Methods inherited from class org.apache.shiro.aop.AnnotationMethodInterceptor
getAnnotation, getHandler, getResolver, setHandler, setResolver, supports
-
Methods inherited from class org.apache.shiro.aop.MethodInterceptorSupport
getSubject
-
-
-
-
Constructor Detail
-
PermissionAnnotationMethodInterceptor
public PermissionAnnotationMethodInterceptor()
Default no-argument constructor that ensures this interceptor looks forRequiresPermissions
annotations in a method declaration.
-
PermissionAnnotationMethodInterceptor
public PermissionAnnotationMethodInterceptor(AnnotationResolver resolver)
- Parameters:
resolver
-- Since:
- 1.1
-
-