Class UserAnnotationMethodInterceptor
java.lang.Object
org.apache.shiro.aop.MethodInterceptorSupport
org.apache.shiro.aop.AnnotationMethodInterceptor
org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor
org.apache.shiro.authz.aop.UserAnnotationMethodInterceptor
- All Implemented Interfaces:
MethodInterceptor
Checks to see if a @
RequiresUser annotation
is declared, and if so, ensures the calling Subject is either
authenticated or remembered via remember
me services before invoking the method.
This annotation essentially ensures that subject.
.getPrincipal() != null
- Since:
- 0.9.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefault no-argument constructor that ensures this interceptor looks for -
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
-
UserAnnotationMethodInterceptor
public UserAnnotationMethodInterceptor()Default no-argument constructor that ensures this interceptor looks forRequiresUserannotations in a method declaration. -
UserAnnotationMethodInterceptor
- Parameters:
resolver-- Since:
- 1.1
-