クラス 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 classRequestMatcherDelegatingAuthenticationManagerResolver.Builder
方法の概要
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 static RequestMatcherDelegatingAuthenticationManagerResolver.Builderbuilder()RequestMatcherDelegatingAuthorizationManagerのビルダーを作成します。AuthenticationManagerresolve(javax.servlet.http.HttpServletRequest context)提供されたコンテキストからAuthenticationManagerを解決するvoidsetDefaultAuthenticationManager(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インスタンス