クラス AbstractSecurityExpressionHandler<T>

java.lang.ObjectSE
org.springframework.security.access.expression.AbstractSecurityExpressionHandler<T>
実装されたすべてのインターフェース:
org.springframework.aop.framework.AopInfrastructureBeanorg.springframework.beans.factory.Awareorg.springframework.context.ApplicationContextAwareSecurityExpressionHandler<T>
既知の直属サブクラス
DefaultHttpSecurityExpressionHandlerDefaultMessageSecurityExpressionHandlerDefaultMethodSecurityExpressionHandlerDefaultWebSecurityExpressionHandler

public abstract class AbstractSecurityExpressionHandler<T> extends ObjectSE implements SecurityExpressionHandler<T>, org.springframework.context.ApplicationContextAware
基本的な式オブジェクトの実装からセキュリティ式を評価するための Spring Security の要件を分離するファサードの基本実装。
導入:
3.1
  • コンストラクターの詳細

    • 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

      protected RoleHierarchy getRoleHierarchy()
    • setRoleHierarchy

      public void setRoleHierarchy(RoleHierarchy roleHierarchy)
    • getPermissionEvaluator

      protected PermissionEvaluator getPermissionEvaluator()
    • setPermissionEvaluator

      public void setPermissionEvaluator(PermissionEvaluator permissionEvaluator)
    • getBeanResolver

      protected org.springframework.expression.BeanResolver getBeanResolver()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      次で指定:
      インターフェース org.springframework.context.ApplicationContextAwaresetApplicationContext