Class AuthorizeReturnObjectMethodInterceptor
java.lang.Object
org.springframework.security.authorization.method.AuthorizeReturnObjectMethodInterceptor
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.aopalliance.intercept.Interceptor,org.aopalliance.intercept.MethodInterceptor,org.springframework.aop.Advisor,org.springframework.aop.framework.AopInfrastructureBean,org.springframework.aop.PointcutAdvisor,org.springframework.core.Ordered,AuthorizationAdvisor
public final class AuthorizeReturnObjectMethodInterceptor
extends Object
implements AuthorizationAdvisor
A method interceptor that applies the given
AuthorizationProxyFactory to any
return value annotated with AuthorizeReturnObject- Since:
- 6.3
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.aop.Advisor
EMPTY_ADVICEFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionConstruct the interceptorAuthorizeReturnObjectMethodInterceptor(AuthorizationProxyFactory authorizationProxyFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.aopalliance.aop.AdviceintgetOrder()org.springframework.aop.Pointcutinvoke(org.aopalliance.intercept.MethodInvocation mi) booleanvoidsetAuthorizationProxyFactory(AuthorizationProxyFactory authorizationProxyFactory) Use thisAuthorizationProxyFactoryvoidsetOrder(int order) voidsetPointcut(org.springframework.aop.Pointcut pointcut)
-
Constructor Details
-
AuthorizeReturnObjectMethodInterceptor
public AuthorizeReturnObjectMethodInterceptor()Construct the interceptorUsing this constructor requires you to specify
setAuthorizationProxyFactory(org.springframework.security.authorization.AuthorizationProxyFactory)- Since:
- 6.5
-
AuthorizeReturnObjectMethodInterceptor
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
Throwable
-
setAuthorizationProxyFactory
Use thisAuthorizationProxyFactory- Parameters:
authorizationProxyFactory- the proxy factory to use- Since:
- 6.5
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order) -
getPointcut
public org.springframework.aop.Pointcut getPointcut()- Specified by:
getPointcutin interfaceorg.springframework.aop.PointcutAdvisor
-
setPointcut
public void setPointcut(org.springframework.aop.Pointcut pointcut) -
getAdvice
public org.aopalliance.aop.Advice getAdvice()- Specified by:
getAdvicein interfaceorg.springframework.aop.Advisor
-
isPerInstance
public boolean isPerInstance()- Specified by:
isPerInstancein interfaceorg.springframework.aop.Advisor
-