Class AuthenticatedAnnotationMethodInterceptor
java.lang.Object
org.apache.shiro.aop.MethodInterceptorSupport
org.apache.shiro.aop.AnnotationMethodInterceptor
org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor
org.apache.shiro.authz.aop.AuthenticatedAnnotationMethodInterceptor
- All Implemented Interfaces:
MethodInterceptor
public class AuthenticatedAnnotationMethodInterceptor
extends AuthorizingAnnotationMethodInterceptor
Checks to see if a @
RequiresAuthenticated annotation
is declared, and if so, ensures the calling
Subject.isAuthenticated() before invoking
the method.- Since:
- 0.9.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefault no-argument constructor that ensures this interceptor looks forRequiresAuthenticationannotations 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
-
AuthenticatedAnnotationMethodInterceptor
Default no-argument constructor that ensures this interceptor looks forRequiresAuthenticationannotations in a method declaration. -
AuthenticatedAnnotationMethodInterceptor
- Parameters:
resolver-- Since:
- 1.1
-