クラス MethodInvocationPrivilegeEvaluator
- java.lang.Object
-
- org.springframework.security.access.intercept.MethodInvocationPrivilegeEvaluator
- 実装されているすべてのインターフェース:
org.springframework.beans.factory.InitializingBean
public class MethodInvocationPrivilegeEvaluator extends java.lang.Object implements org.springframework.beans.factory.InitializingBean
特定のメソッド呼び出しに対して「呼び出し前」の特権があるかどうかをユーザーが判断できるようにします。もちろん、
AfterInvocationManager
を使用してメソッド呼び出しの結果を承認する場合、このクラスは、AfterInvocationManager
がアクセスを有効にするかどうかの決定を支援できません。代わりに、このクラスは、「後」の呼び出し処理に関係なく、現在のプリンシパルが少なくともメソッドの呼び出しを試行できるかどうかをアプリケーションが判断できるようにすることを目的としています。
フィールドのサマリー
フィールド 修飾子と型 フィールド 説明 protected static org.apache.commons.logging.Log
logger
コンストラクターの概要
コンストラクター コンストラクター 説明 MethodInvocationPrivilegeEvaluator()
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 void
afterPropertiesSet()
boolean
isAllowed(org.aopalliance.intercept.MethodInvocation invocation, Authentication authentication)
void
setSecurityInterceptor(AbstractSecurityInterceptor securityInterceptor)
メソッドの詳細
afterPropertiesSet
public void afterPropertiesSet()
- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBean
のafterPropertiesSet
isAllowed
public boolean isAllowed(org.aopalliance.intercept.MethodInvocation invocation, Authentication authentication)
setSecurityInterceptor
public void setSecurityInterceptor(AbstractSecurityInterceptor securityInterceptor)