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