クラス AbstractSecurityExpressionHandler<T>
java.lang.ObjectSE
org.springframework.security.access.expression.AbstractSecurityExpressionHandler<T>
- 実装されたすべてのインターフェース:
org.springframework.aop.framework.AopInfrastructureBean
、org.springframework.beans.factory.Aware
、org.springframework.context.ApplicationContextAware
、SecurityExpressionHandler<T>
- 既知の直属サブクラス
DefaultHttpSecurityExpressionHandler
、DefaultMessageSecurityExpressionHandler
、DefaultMethodSecurityExpressionHandler
、DefaultWebSecurityExpressionHandler
public abstract class AbstractSecurityExpressionHandler<T>
extends ObjectSE
implements SecurityExpressionHandler<T>, org.springframework.context.ApplicationContextAware
基本的な式オブジェクトの実装からセキュリティ式を評価するための Spring Security の要件を分離するファサードの基本実装。
- 導入:
- 3.1
コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明final org.springframework.expression.EvaluationContext
createEvaluationContext
(Authentication authentication, T invocation) 内部テンプレートメソッドを呼び出して、StandardEvaluationContext
およびSecurityExpressionRoot
オブジェクトを作成します。protected org.springframework.expression.spel.support.StandardEvaluationContext
createEvaluationContextInternal
(Authentication authentication, T invocation) オーバーライドして、StandardEvaluationContext
のカスタムインスタンスを作成します。protected abstract SecurityExpressionOperations
createSecurityExpressionRoot
(Authentication authentication, T invocation) サポートされている呼び出し型に対して正しい型のルートオブジェクトを作成するために実装します。protected org.springframework.expression.BeanResolver
final org.springframework.expression.ExpressionParser
protected PermissionEvaluator
protected RoleHierarchy
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) final void
setExpressionParser
(org.springframework.expression.ExpressionParser expressionParser) void
setPermissionEvaluator
(PermissionEvaluator permissionEvaluator) void
setRoleHierarchy
(RoleHierarchy roleHierarchy) クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.security.access.expression.SecurityExpressionHandler から継承されたメソッド
createEvaluationContext
コンストラクターの詳細
AbstractSecurityExpressionHandler
public AbstractSecurityExpressionHandler()
メソッドの詳細
getExpressionParser
public final org.springframework.expression.ExpressionParser getExpressionParser()- 次で指定:
- インターフェース
SecurityExpressionHandler<T>
のgetExpressionParser
- 戻り値:
- 実装で使用される式の式パーサー。
setExpressionParser
public final void setExpressionParser(org.springframework.expression.ExpressionParser expressionParser) createEvaluationContext
public final org.springframework.expression.EvaluationContext createEvaluationContext(Authentication authentication, T invocation) 内部テンプレートメソッドを呼び出して、StandardEvaluationContext
およびSecurityExpressionRoot
オブジェクトを作成します。- 次で指定:
- インターフェース
SecurityExpressionHandler<T>
のcreateEvaluationContext
- パラメーター:
authentication
- 現在の認証オブジェクトinvocation
- 呼び出し (フィルター、メソッド、チャネル)- 戻り値:
- 式の評価に使用するコンテキストオブジェクトで、適切なルートオブジェクトが入力されています。
createEvaluationContextInternal
protected org.springframework.expression.spel.support.StandardEvaluationContext createEvaluationContextInternal(Authentication authentication, T invocation) オーバーライドして、StandardEvaluationContext
のカスタムインスタンスを作成します。返されるオブジェクトには
SecurityExpressionRootPropertyAccessor
が追加され、式のプロパティを介してApplicationContext
内の Bean にアクセスできるようになります。- パラメーター:
authentication
- 現在の認証オブジェクトinvocation
- 呼び出し (フィルター、メソッド、チャネル)- 戻り値:
StandardEvaluationContext
またはオーバーライドされる可能性のあるカスタムサブクラス。
createSecurityExpressionRoot
protected abstract SecurityExpressionOperations createSecurityExpressionRoot(Authentication authentication, T invocation) サポートされている呼び出し型に対して正しい型のルートオブジェクトを作成するために実装します。- パラメーター:
authentication
- 現在の認証オブジェクトinvocation
- 呼び出し (フィルター、メソッド、チャネル)- 戻り値:
- オブジェクト
getRoleHierarchy
setRoleHierarchy
getPermissionEvaluator
setPermissionEvaluator
getBeanResolver
protected org.springframework.expression.BeanResolver getBeanResolver()setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - 次で指定:
- インターフェース
org.springframework.context.ApplicationContextAware
のsetApplicationContext