クラス DefaultWebSecurityExpressionHandler
java.lang.ObjectSE
org.springframework.security.access.expression.AbstractSecurityExpressionHandler<FilterInvocation>
org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler
- 実装されたすべてのインターフェース:
org.springframework.aop.framework.AopInfrastructureBean
、org.springframework.beans.factory.Aware
、org.springframework.context.ApplicationContextAware
、SecurityExpressionHandler<FilterInvocation>
public class DefaultWebSecurityExpressionHandler
extends AbstractSecurityExpressionHandler<FilterInvocation>
implements SecurityExpressionHandler<FilterInvocation>
- 導入:
- 3.0
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected SecurityExpressionOperations
createSecurityExpressionRoot
(Authentication authentication, FilterInvocation fi) サポートされている呼び出し型に対して正しい型のルートオブジェクトを作成するために実装します。void
setDefaultRolePrefix
(StringSE defaultRolePrefix) SecurityExpressionRoot.hasAnyRole(String...)
またはSecurityExpressionRoot.hasRole(String)
に追加されるデフォルトのプレフィックスを設定します。void
setTrustResolver
(AuthenticationTrustResolver trustResolver) 使用するAuthenticationTrustResolver
を設定します。クラス org.springframework.security.access.expression.AbstractSecurityExpressionHandler から継承されたメソッド
createEvaluationContext, createEvaluationContextInternal, getBeanResolver, getExpressionParser, getPermissionEvaluator, getRoleHierarchy, setApplicationContext, setExpressionParser, setPermissionEvaluator, setRoleHierarchy
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.security.access.expression.SecurityExpressionHandler から継承されたメソッド
createEvaluationContext, createEvaluationContext, getExpressionParser
コンストラクターの詳細
DefaultWebSecurityExpressionHandler
public DefaultWebSecurityExpressionHandler()
メソッドの詳細
createSecurityExpressionRoot
protected SecurityExpressionOperations createSecurityExpressionRoot(Authentication authentication, FilterInvocation fi) クラスからコピーされた説明:AbstractSecurityExpressionHandler
サポートされている呼び出し型に対して正しい型のルートオブジェクトを作成するために実装します。- 次で指定:
- クラス
AbstractSecurityExpressionHandler<FilterInvocation>
のcreateSecurityExpressionRoot
- パラメーター:
authentication
- 現在の認証オブジェクトfi
- 呼び出し (フィルター、メソッド、チャネル)- 戻り値:
- オブジェクト
setTrustResolver
使用するAuthenticationTrustResolver
を設定します。デフォルトはAuthenticationTrustResolverImpl
です。- パラメーター:
trustResolver
- 使用するAuthenticationTrustResolver
。null にはできません。
setDefaultRolePrefix
SecurityExpressionRoot.hasAnyRole(String...)
またはSecurityExpressionRoot.hasRole(String)
に追加するデフォルトのプレフィックスを設定します。例: hasRole("ADMIN" ) または hasRole("ROLE_ADMIN" ) が渡された場合、defaultRolePrefix が "ROLE_" (デフォルト) のときはロール ROLE_ADMIN が使用されます。null または空の場合、デフォルトのロールプレフィックスは使用されません。
- パラメーター:
defaultRolePrefix
- ロールに追加するデフォルトのプレフィックス。デフォルトは "ROLE_"。