クラス RequestMatcherDelegatingWebInvocationPrivilegeEvaluator
- java.lang.Object
-
- org.springframework.security.web.access.RequestMatcherDelegatingWebInvocationPrivilegeEvaluator
- 実装されているすべてのインターフェース:
org.springframework.beans.factory.Aware、WebInvocationPrivilegeEvaluator、org.springframework.web.context.ServletContextAware
public final class RequestMatcherDelegatingWebInvocationPrivilegeEvaluator extends java.lang.Object implements WebInvocationPrivilegeEvaluator, org.springframework.web.context.ServletContextAware
- 導入:
- 5.5.5
コンストラクターの概要
コンストラクター コンストラクター 説明 RequestMatcherDelegatingWebInvocationPrivilegeEvaluator(java.util.List<RequestMatcherEntry<java.util.List<WebInvocationPrivilegeEvaluator>>> requestMatcherPrivilegeEvaluatorsEntries)
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 booleanisAllowed(java.lang.String contextPath, java.lang.String uri, java.lang.String method, Authentication authentication)指定された Authentication オブジェクトによって表されるユーザーが、指定された URI を呼び出すことができるかどうかを決定します。booleanisAllowed(java.lang.String uri, Authentication authentication)指定された Authentication オブジェクトによって表されるユーザーが、指定された URI を呼び出すことができるかどうかを決定します。voidsetServletContext(javax.servlet.ServletContext servletContext)
コンストラクターの詳細
RequestMatcherDelegatingWebInvocationPrivilegeEvaluator
public RequestMatcherDelegatingWebInvocationPrivilegeEvaluator(java.util.List<RequestMatcherEntry<java.util.List<WebInvocationPrivilegeEvaluator>>> requestMatcherPrivilegeEvaluatorsEntries)
メソッドの詳細
isAllowed
public boolean isAllowed(java.lang.String uri, Authentication authentication)指定された Authentication オブジェクトによって表されるユーザーが、指定された URI を呼び出すことができるかどうかを決定します。構成されたすべての
RequestMatcherに対して、RequestMatcher.matches(HttpServletRequest)で提供された URI を使用します。一致するRequestMatcherがない場合、または使用可能なWebInvocationPrivilegeEvaluatorがない場合は、trueを返します。- 次で指定:
- インターフェース
WebInvocationPrivilegeEvaluatorのisAllowed - パラメーター:
uri- コンテキストパスを除く URI (デフォルトのコンテキストパス設定が使用されます)- 戻り値:
- アクセスが許可されている場合は true、拒否されている場合は false
isAllowed
public boolean isAllowed(java.lang.String contextPath, java.lang.String uri, java.lang.String method, Authentication authentication)指定された Authentication オブジェクトによって表されるユーザーが、指定された URI を呼び出すことができるかどうかを決定します。構成されたすべての
RequestMatcherに対して、RequestMatcher.matches(HttpServletRequest)で提供された URI を使用します。一致するRequestMatcherがない場合、または使用可能なWebInvocationPrivilegeEvaluatorがない場合は、trueを返します。- 次で指定:
- インターフェース
WebInvocationPrivilegeEvaluatorのisAllowed - パラメーター:
uri- コンテキストパスを除く URI (デフォルトのコンテキストパス設定が使用されます)contextPath- コンテキストパス(null の場合があります。その場合、デフォルト値が使用されます)。method- HTTP メソッド (または null、任意のメソッド)authentication- Authentication インスタンス。その権限は、アクセスを許可するかどうかの評価に使用する必要があります。- 戻り値:
- アクセスが許可されている場合は true、拒否されている場合は false
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
- 次で指定:
- インターフェース
org.springframework.web.context.ServletContextAwareのsetServletContext