org.apache.shiro.authz.aop
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
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 calling Subject
is allowed to invoke the method.
- Since:
- 0.9
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoleAnnotationMethodInterceptor
public RoleAnnotationMethodInterceptor()
- Default no-argument constructor that ensures this interceptor looks for
RequiresRoles
annotations in a method declaration.
RoleAnnotationMethodInterceptor
public RoleAnnotationMethodInterceptor(AnnotationResolver resolver)
- Parameters:
resolver
- - Since:
- 1.1
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.