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:
  • Constructor Details

    • AuthorizeReturnObjectMethodInterceptor

      public AuthorizeReturnObjectMethodInterceptor(AuthorizationProxyFactory authorizationProxyFactory)
  • Method Details

    • invoke

      public Object invoke(org.aopalliance.intercept.MethodInvocation mi) throws Throwable
      Specified by:
      invoke in interface org.aopalliance.intercept.MethodInterceptor
      Throws:
      Throwable
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • setOrder

      public void setOrder(int order)
    • getPointcut

      public org.springframework.aop.Pointcut getPointcut()
      Specified by:
      getPointcut in interface org.springframework.aop.PointcutAdvisor
    • setPointcut

      public void setPointcut(org.springframework.aop.Pointcut pointcut)
    • getAdvice

      public org.aopalliance.aop.Advice getAdvice()
      Specified by:
      getAdvice in interface org.springframework.aop.Advisor
    • isPerInstance

      public boolean isPerInstance()
      Specified by:
      isPerInstance in interface org.springframework.aop.Advisor