Class DefaultSecurityInterceptor
java.lang.Object
org.tynamo.shiro.extension.authz.aop.DefaultSecurityInterceptor
- All Implemented Interfaces:
SecurityInterceptor
Generic interceptor for use in different aop implementations. Created based on method annotation.
To create the interceptor based on the class annotation, use
for convert class annotation to method annotation.
invalid reference
org.tynamo.shiro.extension.authz.annotations.utils.AnnotationFactory
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSecurityInterceptor(Annotation annotation) Initializehandlerfield use annotation.DefaultSecurityInterceptor(org.apache.shiro.authz.aop.AuthorizingAnnotationHandler handler, Annotation annotation) Used in cases where previously knownAuthorizingAnnotationHandlerobject. -
Method Summary
Modifier and TypeMethodDescriptionvoidThe method which is performed before the method that you want to check.
-
Constructor Details
-
DefaultSecurityInterceptor
public DefaultSecurityInterceptor(org.apache.shiro.authz.aop.AuthorizingAnnotationHandler handler, Annotation annotation) Used in cases where previously knownAuthorizingAnnotationHandlerobject. if the handler object is unknown useDefaultSecurityInterceptor(Annotation)constructor- Parameters:
handler- given AnnotationHandlerannotation- the annotation itself
-
DefaultSecurityInterceptor
Initializehandlerfield use annotation.- Parameters:
annotation- annotation for create handler and use duringintercept()invocation.
-
-
Method Details
-
intercept
public void intercept()Description copied from interface:SecurityInterceptorThe method which is performed before the method that you want to check.- Specified by:
interceptin interfaceSecurityInterceptor
-
getAnnotation
-