クラス AuthorizationManagerBeforeMethodInterceptor

  • 実装されたすべてのインターフェース:
    org.aopalliance.aop.Adviceorg.aopalliance.intercept.Interceptororg.aopalliance.intercept.MethodInterceptororg.springframework.aop.Advisororg.springframework.aop.framework.AopInfrastructureBeanorg.springframework.aop.PointcutAdvisororg.springframework.core.Ordered

    public final class AuthorizationManagerBeforeMethodInterceptor
    extends java.lang.Object
    implements org.springframework.core.Ordered, org.aopalliance.intercept.MethodInterceptor, org.springframework.aop.PointcutAdvisor, org.springframework.aop.framework.AopInfrastructureBean
    AuthorizationManager を使用して Authentication が特定の MethodInvocation を呼び出すことができるかどうかを判別する MethodInterceptor 
    導入:
    5.6
    • コンストラクターの詳細

      • AuthorizationManagerBeforeMethodInterceptor

        public AuthorizationManagerBeforeMethodInterceptor​(org.springframework.aop.Pointcut pointcut,
                                                           AuthorizationManager<org.aopalliance.intercept.MethodInvocation> authorizationManager)
        インスタンスを作成します。
        パラメーター:
        pointcut - 使用する Pointcut 
        authorizationManager - 使用する AuthorizationManager
    • メソッドの詳細

      • invoke

        public java.lang.Object invoke​(org.aopalliance.intercept.MethodInvocation mi)
                                throws java.lang.Throwable
        構成された AuthorizationManager を使用して、Authentication が MethodInvocation にアクセスできるかどうかを判別します。
        次で指定:
        インターフェース org.aopalliance.intercept.MethodInterceptorinvoke 
        パラメーター:
        mi - チェックする MethodInvocation 
        例外:
        AccessDeniedException - アクセスが許可されていない場合
        java.lang.Throwable
      • getOrder

        public int getOrder()
        次で指定:
        インターフェース org.springframework.core.OrderedgetOrder 
      • setOrder

        public void setOrder​(int order)
      • getPointcut

        public org.springframework.aop.Pointcut getPointcut()
        次で指定:
        インターフェース org.springframework.aop.PointcutAdvisorgetPointcut 
      • getAdvice

        public org.aopalliance.aop.Advice getAdvice()
        次で指定:
        インターフェース org.springframework.aop.AdvisorgetAdvice 
      • isPerInstance

        public boolean isPerInstance()
        次で指定:
        インターフェース org.springframework.aop.AdvisorisPerInstance