クラス AuthorizationManagerAfterReactiveMethodInterceptor
java.lang.ObjectSE
org.springframework.security.authorization.method.AuthorizationManagerAfterReactiveMethodInterceptor
- 実装されたすべてのインターフェース:
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 AuthorizationManagerAfterReactiveMethodInterceptor
extends ObjectSE
implements AuthorizationAdvisor
設定された
ReactiveAuthorizationManager
を使用して、Authentication
が MethodInvocation
から返されたオブジェクトにアクセスできるかどうかを判断できる MethodInterceptor
。- 導入:
- 5.8
フィールドサマリー
インターフェース org.springframework.aop.Advisor から継承されたフィールド
EMPTY_ADVICE
インターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
コンストラクターのサマリー
コンストラクターコンストラクター説明AuthorizationManagerAfterReactiveMethodInterceptor
(org.springframework.aop.Pointcut pointcut, ReactiveAuthorizationManager<MethodInvocationResult> authorizationManager) インスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明org.aopalliance.aop.Advice
int
getOrder()
org.springframework.aop.Pointcut
invoke
(org.aopalliance.intercept.MethodInvocation mi) 設定されたReactiveAuthorizationManager
を使用して、MethodInvocation
から返されたオブジェクトにAuthentication
がアクセスできるかどうかを判断します。boolean
PostAuthorize
アノテーションのインスタンスを作成します。postAuthorize
(ReactiveAuthorizationManager<MethodInvocationResult> authorizationManager) PostAuthorize
アノテーションのインスタンスを作成します。void
setOrder
(int order)
コンストラクターの詳細
AuthorizationManagerAfterReactiveMethodInterceptor
public AuthorizationManagerAfterReactiveMethodInterceptor(org.springframework.aop.Pointcut pointcut, ReactiveAuthorizationManager<MethodInvocationResult> authorizationManager) インスタンスを作成します。- パラメーター:
pointcut
- 使用するPointcut
authorizationManager
- 使用するReactiveAuthorizationManager
メソッドの詳細
postAuthorize
PostAuthorize
アノテーションのインスタンスを作成します。postAuthorize
public static AuthorizationManagerAfterReactiveMethodInterceptor postAuthorize(ReactiveAuthorizationManager<MethodInvocationResult> authorizationManager) PostAuthorize
アノテーションのインスタンスを作成します。- パラメーター:
authorizationManager
- 使用するReactiveAuthorizationManager
- 戻り値:
- 使用する
AuthorizationManagerAfterReactiveMethodInterceptor
invoke
設定されたReactiveAuthorizationManager
を使用して、MethodInvocation
から返されたオブジェクトにAuthentication
がアクセスできるかどうかを判断します。- 次で指定:
- インターフェース
org.aopalliance.intercept.MethodInterceptor
のinvoke
- パラメーター:
mi
- 使用するMethodInvocation
- 戻り値:
MethodInvocation
からのPublisher
、またはアクセスが拒否された場合のPublisher
エラー- 例外:
ThrowableSE
getPointcut
public org.springframework.aop.Pointcut getPointcut()- 次で指定:
- インターフェース
org.springframework.aop.PointcutAdvisor
のgetPointcut
getAdvice
public org.aopalliance.aop.Advice getAdvice()- 次で指定:
- インターフェース
org.springframework.aop.Advisor
のgetAdvice
isPerInstance
public boolean isPerInstance()- 次で指定:
- インターフェース
org.springframework.aop.Advisor
のisPerInstance
getOrder
public int getOrder()- 次で指定:
- インターフェース
org.springframework.core.Ordered
のgetOrder
setOrder
public void setOrder(int order)