Package org.apache.shiro.authz.aop
Contains AOP implementation support classes specifically used for authorization operations, particularly supporting
AOP Method Interceptors and JSR-175 metadata Annotations.
-
Class Summary Class Description AnnotationsAuthorizingMethodInterceptor An AnnotationsAuthorizingMethodInterceptor is a MethodInterceptor that asserts a given method is authorized to execute based on one or more configured AuthorizingAnnotationMethodInterceptors.AuthenticatedAnnotationHandler HandlesRequiresAuthentication
annotations and ensures the calling subject is authenticated before allowing access.AuthenticatedAnnotationMethodInterceptor Checks to see if a @RequiresAuthenticated
annotation is declared, and if so, ensures the callingSubject
.isAuthenticated()
before invoking the method.AuthorizingAnnotationHandler An AnnotationHandler that executes authorization (access control) behavior based on directive(s) found in a JSR-175 Annotation.AuthorizingAnnotationMethodInterceptor An AnnotationMethodInterceptor that asserts the calling code is authorized to execute the method before allowing the invocation to continue by inspecting code annotations to perform an access control check.AuthorizingMethodInterceptor Basic abstract class to support intercepting methods that perform authorization (access control) checks.GuestAnnotationHandler Checks to see if a @RequiresGuest
annotation is declared, and if so, ensures the callingSubject
does not have anidentity
before invoking the method.GuestAnnotationMethodInterceptor Checks to see if a @RequiresGuest
annotation is declared, and if so, ensures the callingSubject
does not have anidentity
before invoking the method.PermissionAnnotationHandler Checks to see if a @RequiresPermissions
annotation is declared, and if so, performs a permission check to see if the callingSubject
is allowed continued access.PermissionAnnotationMethodInterceptor Checks to see if a @RequiresPermissions
annotation is declared, and if so, performs a permission check to see if the callingSubject
is allowed to call the method.RoleAnnotationHandler Checks to see if a @RequiresRoles
annotation is declared, and if so, performs a role check to see if the callingSubject
is allowed to proceed.RoleAnnotationMethodInterceptor Checks to see if a @RequiresRoles
annotation is declared, and if so, performs a role check to see if the callingSubject
is allowed to invoke the method.UserAnnotationHandler Checks to see if a @RequiresUser
annotation is declared, and if so, ensures the callingSubject
is eitherauthenticated
or remembered via remember me services before allowing access.UserAnnotationMethodInterceptor Checks to see if a @RequiresUser
annotation is declared, and if so, ensures the callingSubject
is eitherauthenticated
or remembered via remember me services before invoking the method.