クラス RequestMatcherDelegatingAuthenticationManagerResolver
- java.lang.Object
-
- org.springframework.security.web.authentication.RequestMatcherDelegatingAuthenticationManagerResolver
- 実装されたすべてのインターフェース:
AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>
public final class RequestMatcherDelegatingAuthenticationManagerResolver extends java.lang.Object implements AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>
resolve(HttpServletRequest)
に渡されたHttpServletRequest
の型に基づいてAuthenticationManager
インスタンスを返すAuthenticationManagerResolver
。- 導入:
- 5.7
ネストされたクラスのサマリー
ネストされたクラス 修飾子と型 クラス 説明 static class
RequestMatcherDelegatingAuthenticationManagerResolver.Builder
メソッドのサマリー
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 static RequestMatcherDelegatingAuthenticationManagerResolver.Builder
builder()
RequestMatcherDelegatingAuthorizationManager
のビルダーを作成します。AuthenticationManager
resolve(javax.servlet.http.HttpServletRequest context)
提供されたコンテキストからAuthenticationManager
を解決するvoid
setDefaultAuthenticationManager(AuthenticationManager defaultAuthenticationManager)
リクエストが一致しない場合に使用するデフォルトのAuthenticationManager
を設定します
メソッドの詳細
resolve
public AuthenticationManager resolve(javax.servlet.http.HttpServletRequest context)
提供されたコンテキストからAuthenticationManager
を解決する- 次で指定:
- インターフェース
AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>
のresolve
- 戻り値:
- 使用する
AuthenticationManager
setDefaultAuthenticationManager
public void setDefaultAuthenticationManager(AuthenticationManager defaultAuthenticationManager)
リクエストが一致しない場合に使用するデフォルトのAuthenticationManager
を設定します- パラメーター:
defaultAuthenticationManager
- 使用するデフォルトのAuthenticationManager
builder
public static RequestMatcherDelegatingAuthenticationManagerResolver.Builder builder()
RequestMatcherDelegatingAuthorizationManager
のビルダーを作成します。- 戻り値:
- 新しい
RequestMatcherDelegatingAuthorizationManager.Builder
インスタンス