クラス 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.Loglogger
コンストラクター概要
コンストラクター コンストラクター 説明 MethodInvocationPrivilegeEvaluator()
方法の概要
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 voidafterPropertiesSet()booleanisAllowed(org.aopalliance.intercept.MethodInvocation invocation, Authentication authentication)voidsetSecurityInterceptor(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)