Package org.apache.shiro.authz.aop
Class RoleAnnotationMethodInterceptor
-
- org.apache.shiro.aop.MethodInterceptorSupport
-
- org.apache.shiro.aop.AnnotationMethodInterceptor
-
- org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor
-
- org.apache.shiro.authz.aop.RoleAnnotationMethodInterceptor
-
- All Implemented Interfaces:
MethodInterceptor
public class RoleAnnotationMethodInterceptor extends AuthorizingAnnotationMethodInterceptor
Checks to see if a @RequiresRoles
annotation is declared, and if so, performs a role check to see if the callingSubject
is allowed to invoke the method.- Since:
- 0.9
-
-
Constructor Summary
Constructors Constructor Description RoleAnnotationMethodInterceptor()
Default no-argument constructor that ensures this interceptor looks forRequiresRoles
annotations in a method declaration.RoleAnnotationMethodInterceptor(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
-
RoleAnnotationMethodInterceptor
public RoleAnnotationMethodInterceptor()
Default no-argument constructor that ensures this interceptor looks forRequiresRoles
annotations in a method declaration.
-
RoleAnnotationMethodInterceptor
public RoleAnnotationMethodInterceptor(AnnotationResolver resolver)
- Parameters:
resolver
-- Since:
- 1.1
-
-