Class RoleAnnotationMethodInterceptor
java.lang.Object
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
Checks to see if a @
RequiresRoles annotation is declared, and if so, performs
a role check to see if the calling Subject is allowed to invoke the method.- Since:
- 0.9
-
Constructor Summary
ConstructorsConstructorDescriptionDefault no-argument constructor that ensures this interceptor looks forRequiresRolesannotations 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
-
RoleAnnotationMethodInterceptor
public RoleAnnotationMethodInterceptor()Default no-argument constructor that ensures this interceptor looks forRequiresRolesannotations in a method declaration. -
RoleAnnotationMethodInterceptor
- Parameters:
resolver-- Since:
- 1.1
-