JSecurity

org.jsecurity.authz.aop
Class AuthorizingAnnotationMethodInterceptor

java.lang.Object
  extended by org.jsecurity.aop.MethodInterceptorSupport
      extended by org.jsecurity.aop.AnnotationMethodInterceptor
          extended by org.jsecurity.authz.aop.AuthorizingAnnotationMethodInterceptor
All Implemented Interfaces:
MethodInterceptor
Direct Known Subclasses:
PermissionAnnotationMethodInterceptor, RoleAnnotationMethodInterceptor

public abstract class AuthorizingAnnotationMethodInterceptor
extends AnnotationMethodInterceptor

An AnnotationMethodInterceptor that asserts the calling code is authorized to execute the method before allowing the invocation to continue.

Since:
0.1
Author:
Les Hazlewood

Field Summary
 
Fields inherited from class org.jsecurity.aop.AnnotationMethodInterceptor
annotationClass
 
Constructor Summary
AuthorizingAnnotationMethodInterceptor(Class<? extends Annotation> annotationClass)
           
 
Method Summary
abstract  void assertAuthorized(MethodInvocation mi)
           
 Object invoke(MethodInvocation methodInvocation)
           
 
Methods inherited from class org.jsecurity.aop.AnnotationMethodInterceptor
getAnnotation, getAnnotationClass, setAnnotationClass, supports
 
Methods inherited from class org.jsecurity.aop.MethodInterceptorSupport
getSubject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizingAnnotationMethodInterceptor

public AuthorizingAnnotationMethodInterceptor(Class<? extends Annotation> annotationClass)
Method Detail

invoke

public Object invoke(MethodInvocation methodInvocation)
              throws Throwable
Throws:
Throwable

assertAuthorized

public abstract void assertAuthorized(MethodInvocation mi)
                               throws AuthorizationException
Throws:
AuthorizationException

JSecurity

Copyright © 2004-2008 JSecurity.