Uses of Class
org.apache.shiro.aop.AnnotationHandler
Packages that use AnnotationHandler
Package
Description
Components used to support the framework's AOP/interception support classes.
Contains AOP implementation support classes specifically used for authorization operations, particularly supporting
AOP Method Interceptors and JSR-175 metadata Annotations.
-
Uses of AnnotationHandler in org.apache.shiro.aop
Methods in org.apache.shiro.aop that return AnnotationHandlerModifier and TypeMethodDescriptionAnnotationMethodInterceptor.getHandler()Returns theAnnotationHandlerused to perform authorization behavior based on an annotation discovered at runtime.Methods in org.apache.shiro.aop with parameters of type AnnotationHandlerModifier and TypeMethodDescriptionvoidAnnotationMethodInterceptor.setHandler(AnnotationHandler handler) Sets theAnnotationHandlerused to perform authorization behavior based on an annotation discovered at runtime.Constructors in org.apache.shiro.aop with parameters of type AnnotationHandlerModifierConstructorDescriptionConstructs anAnnotationMethodInterceptorwith theAnnotationHandlerthat will be used to process annotations of a corresponding type.AnnotationMethodInterceptor(AnnotationHandler handler, AnnotationResolver resolver) Constructs anAnnotationMethodInterceptorwith theAnnotationHandlerthat will be used to process annotations of a corresponding type, using the specifiedAnnotationResolverto acquire annotations at runtime. -
Uses of AnnotationHandler in org.apache.shiro.authz.aop
Subclasses of AnnotationHandler in org.apache.shiro.authz.aopModifier and TypeClassDescriptionclassHandlesRequiresAuthenticationannotations and ensures the calling subject is authenticated before allowing access.classAn AnnotationHandler that executes authorization (access control) behavior based on directive(s) found in a JSR-175 Annotation.classThisAnnotationHandlerdenys access from any subject (anonymous or logged in user).classChecks to see if a @RequiresGuestannotation is declared, and if so, ensures the callingSubjectdoes not have anidentitybefore invoking the method.classChecks to see if a @RequiresPermissionsannotation is declared, and if so, performs a permission check to see if the callingSubjectis allowed continued access.classThisAnnotationHandlerallows access from any subject (anonymous or logged in user).classChecks to see if a @RequiresRolesannotation is declared, and if so, performs a role check to see if the callingSubjectis allowed to proceed.classChecks to see if a @RolesAllowedannotation is declared, and if so, performs a role check to see if the callingSubjectis allowed to proceed.classChecks to see if a @RequiresUserannotation is declared, and if so, ensures the callingSubjectis eitherauthenticatedor remembered via remember me services before allowing access.