Package | Description |
---|---|
org.apache.shiro.aop |
Components used to support the framework's AOP/interception support classes.
|
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.
|
org.apache.shiro.spring.aop | |
org.apache.shiro.spring.security.interceptor |
Spring AOP support for enabling Shiro annotations in Spring-configured applications.
|
Modifier and Type | Method and Description |
---|---|
protected Annotation |
AnnotationMethodInterceptor.getAnnotation(MethodInvocation mi)
Returns the Annotation that this interceptor will process for the specified method invocation.
|
Annotation |
AnnotationResolver.getAnnotation(MethodInvocation mi,
Class<? extends Annotation> clazz)
Returns an
Annotation instance of the specified type based on the given
MethodInvocation argument, or null if no annotation
of that type could be found. |
Annotation |
DefaultAnnotationResolver.getAnnotation(MethodInvocation mi,
Class<? extends Annotation> clazz)
|
Object |
MethodInterceptor.invoke(MethodInvocation methodInvocation)
Invokes the specified
MethodInvocation , allowing implementations to perform pre/post/finally
surrounding the actual invocation. |
boolean |
AnnotationMethodInterceptor.supports(MethodInvocation mi)
Returns
true if this interceptor supports, that is, should inspect, the specified
MethodInvocation , false otherwise. |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AuthorizingMethodInterceptor.assertAuthorized(MethodInvocation methodInvocation)
Asserts that the specified MethodInvocation is allowed to continue by performing any necessary authorization
(access control) checks first.
|
void |
AuthorizingAnnotationMethodInterceptor.assertAuthorized(MethodInvocation mi)
Ensures the calling Subject is authorized to execute the specified
MethodInvocation . |
protected void |
AnnotationsAuthorizingMethodInterceptor.assertAuthorized(MethodInvocation methodInvocation)
Iterates over the internal
methodInterceptors collection, and for each one,
ensures that if the interceptor
supports
the invocation, that the interceptor
asserts
that the invocation is authorized to proceed. |
Object |
AuthorizingMethodInterceptor.invoke(MethodInvocation methodInvocation)
Invokes the specified method (
methodInvocation.
if authorization is allowed by first
calling assertAuthorized . |
Object |
AuthorizingAnnotationMethodInterceptor.invoke(MethodInvocation methodInvocation)
Ensures the
methodInvocation is allowed to execute first before proceeding by calling the
assertAuthorized method first. |
Modifier and Type | Method and Description |
---|---|
Annotation |
SpringAnnotationResolver.getAnnotation(MethodInvocation mi,
Class<? extends Annotation> clazz) |
Modifier and Type | Method and Description |
---|---|
protected MethodInvocation |
AopAllianceAnnotationsAuthorizingMethodInterceptor.createMethodInvocation(Object implSpecificMethodInvocation)
Creates a
MethodInvocation that wraps an
org.aopalliance.intercept.MethodInvocation instance,
enabling Shiro Annotations in AOP Alliance environments
(Spring, etc). |
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.