クラス AuthorizationManagerAfterMethodInterceptor
- java.lang.Object
-
- org.springframework.security.authorization.method.AuthorizationManagerAfterMethodInterceptor
- 実装されたすべてのインターフェース:
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
public final class AuthorizationManagerAfterMethodInterceptor extends java.lang.Object implements org.springframework.core.Ordered, org.aopalliance.intercept.MethodInterceptor, org.springframework.aop.PointcutAdvisor, org.springframework.aop.framework.AopInfrastructureBean
Authentication
がAuthorizationManager
を使用してMethodInvocation
の結果にアクセスできるかどうかを判別できるMethodInterceptor
- 導入:
- 5.6
コンストラクターのサマリー
コンストラクター コンストラクター 説明 AuthorizationManagerAfterMethodInterceptor(org.springframework.aop.Pointcut pointcut, AuthorizationManager<MethodInvocationResult> authorizationManager)
インスタンスを作成します。
メソッドのサマリー
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 org.aopalliance.aop.Advice
getAdvice()
int
getOrder()
org.springframework.aop.Pointcut
getPointcut()
java.lang.Object
invoke(org.aopalliance.intercept.MethodInvocation mi)
boolean
isPerInstance()
static AuthorizationManagerAfterMethodInterceptor
postAuthorize()
PostAuthorize
アノテーションのインターセプターを作成しますstatic AuthorizationManagerAfterMethodInterceptor
postAuthorize(PostAuthorizeAuthorizationManager authorizationManager)
PostAuthorize
アノテーションのインターセプターを作成しますvoid
setOrder(int order)
コンストラクターの詳細
AuthorizationManagerAfterMethodInterceptor
public AuthorizationManagerAfterMethodInterceptor(org.springframework.aop.Pointcut pointcut, AuthorizationManager<MethodInvocationResult> authorizationManager)
インスタンスを作成します。- パラメーター:
pointcut
- 使用するPointcut
authorizationManager
- 使用するAuthorizationManager
メソッドの詳細
postAuthorize
public static AuthorizationManagerAfterMethodInterceptor postAuthorize()
PostAuthorize
アノテーションのインターセプターを作成します- 戻り値:
- インターセプター
postAuthorize
public static AuthorizationManagerAfterMethodInterceptor postAuthorize(PostAuthorizeAuthorizationManager authorizationManager)
PostAuthorize
アノテーションのインターセプターを作成します- パラメーター:
authorizationManager
- 使用するPostAuthorizeAuthorizationManager
- 戻り値:
- インターセプター
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation mi) throws java.lang.Throwable
- 次で指定:
- インターフェース
org.aopalliance.intercept.MethodInterceptor
のinvoke
- パラメーター:
mi
- チェックするMethodInvocation
- 例外:
AccessDeniedException
- アクセスが許可されていない場合java.lang.Throwable
getOrder
public int getOrder()
- 次で指定:
- インターフェース
org.springframework.core.Ordered
のgetOrder
setOrder
public void setOrder(int order)
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