クラス AuthorizationManagerBeforeReactiveMethodInterceptor

java.lang.ObjectSE
org.springframework.security.authorization.method.AuthorizationManagerBeforeReactiveMethodInterceptor
実装されたすべてのインターフェース:
org.aopalliance.aop.Adviceorg.aopalliance.intercept.Interceptororg.aopalliance.intercept.MethodInterceptororg.springframework.aop.Advisororg.springframework.aop.framework.AopInfrastructureBeanorg.springframework.aop.PointcutAdvisororg.springframework.core.OrderedAuthorizationAdvisor

public final class AuthorizationManagerBeforeReactiveMethodInterceptor extends ObjectSE implements AuthorizationAdvisor
構成された ReactiveAuthorizationManager を使用して、Authentication が MethodInvocation にアクセスできるかどうかを判別できる MethodInterceptor
導入:
5.8
  • コンストラクターの詳細

    • AuthorizationManagerBeforeReactiveMethodInterceptor

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

    • preAuthorize

      PreAuthorize アノテーションのインスタンスを作成します。
      戻り値:
      使用する AuthorizationManagerBeforeReactiveMethodInterceptor
    • preAuthorize

      public static AuthorizationManagerBeforeReactiveMethodInterceptor preAuthorize(ReactiveAuthorizationManager<org.aopalliance.intercept.MethodInvocation> authorizationManager)
      PreAuthorize アノテーションのインスタンスを作成します。
      パラメーター:
      authorizationManager - 使用する ReactiveAuthorizationManager
      戻り値:
      使用する AuthorizationManagerBeforeReactiveMethodInterceptor
    • invoke

      public ObjectSE invoke(org.aopalliance.intercept.MethodInvocation mi) throws ThrowableSE
      構成された ReactiveAuthorizationManager を使用して Authentication が MethodInvocation にアクセスできるかどうかを判別します。
      次で指定:
      インターフェース org.aopalliance.intercept.MethodInterceptorinvoke 
      パラメーター:
      mi - 使用する MethodInvocation 
      戻り値:
      MethodInvocation からの Publisher、またはアクセスが拒否された場合の Publisher エラー
      例外:
      ThrowableSE
    • 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 
    • getOrder

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

      public void setOrder(int order)