org.tynamo.shiro.extension.authz.aop
Class DefaultSecurityInterceptor

java.lang.Object
  extended by org.tynamo.shiro.extension.authz.aop.DefaultSecurityInterceptor
All Implemented Interfaces:
SecurityInterceptor

public class DefaultSecurityInterceptor
extends Object
implements SecurityInterceptor

Generic interceptor for use in different aop implementations. Created based on method annotation.

To create the interceptor based on the class annotation, use org.tynamo.shiro.extension.authz.annotations.utils.AnnotationFactory for convert class annotation to method annotation.


Constructor Summary
DefaultSecurityInterceptor(Annotation annotation)
          Initialize handler field use annotation.
DefaultSecurityInterceptor(org.apache.shiro.authz.aop.AuthorizingAnnotationHandler handler, Annotation annotation)
          Used in cases where previously known AuthorizingAnnotationHandler object.
 
Method Summary
 Annotation getAnnotation()
           
 void intercept()
          The method which is performed before the method that you want to check.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSecurityInterceptor

public DefaultSecurityInterceptor(org.apache.shiro.authz.aop.AuthorizingAnnotationHandler handler,
                                  Annotation annotation)
Used in cases where previously known AuthorizingAnnotationHandler object.

if the handler object is unknown use DefaultSecurityInterceptor(Annotation) constructor

Parameters:
handler -
annotation -

DefaultSecurityInterceptor

public DefaultSecurityInterceptor(Annotation annotation)
Initialize handler field use annotation.

Parameters:
annotation - annotation for create handler and use during intercept() invocation.
Method Detail

intercept

public void intercept()
Description copied from interface: SecurityInterceptor
The method which is performed before the method that you want to check.

Specified by:
intercept in interface SecurityInterceptor

getAnnotation

public Annotation getAnnotation()


Copyright © 2004-2013. All Rights Reserved.