クラス ServerHttpSecurity.HttpBasicSpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.HttpBasicSpec
- 含まれているクラス:
- ServerHttpSecurity
public final class ServerHttpSecurity.HttpBasicSpec extends java.lang.Object
HTTP 基本認証を構成します- 導入:
- 5.0
- 関連事項:
ServerHttpSecurity.httpBasic()
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 ServerHttpSecurity
and()
メソッドチェーンがServerHttpSecurity
の構成を続行できるようにしますServerHttpSecurity.HttpBasicSpec
authenticationEntryPoint(ServerAuthenticationEntryPoint authenticationEntryPoint)
エントリポイントを簡単に設定できます。ServerHttpSecurity.HttpBasicSpec
authenticationManager(ReactiveAuthenticationManager authenticationManager)
認証に使用されるReactiveAuthenticationManager
。protected void
configure(ServerHttpSecurity http)
ServerHttpSecurity
disable()
HTTP 基本認証を無効にします。ServerHttpSecurity.HttpBasicSpec
securityContextRepository(ServerSecurityContextRepository securityContextRepository)
Authentication
を保存するために使用されるServerSecurityContextRepository
。
メソッドの詳細
authenticationManager
public ServerHttpSecurity.HttpBasicSpec authenticationManager(ReactiveAuthenticationManager authenticationManager)
認証に使用されるReactiveAuthenticationManager
。デフォルトはServerHttpSecurity.authenticationManager(ReactiveAuthenticationManager)
です。- パラメーター:
authenticationManager
- 使用する認証マネージャー- 戻り値:
ServerHttpSecurity.HttpBasicSpec
の構成を続行するには
securityContextRepository
public ServerHttpSecurity.HttpBasicSpec securityContextRepository(ServerSecurityContextRepository securityContextRepository)
Authentication
を保存するために使用されるServerSecurityContextRepository
。デフォルトはNoOpServerSecurityContextRepository
です。後続のリクエストでSecurityContext
をロードするには、値をロードできるようにReactorContextWebFilter
を構成する必要があります(暗黙的にリンクされていません)。- パラメーター:
securityContextRepository
- 使用するリポジトリ- 戻り値:
ServerHttpSecurity.HttpBasicSpec
の構成を続行するには
authenticationEntryPoint
public ServerHttpSecurity.HttpBasicSpec authenticationEntryPoint(ServerAuthenticationEntryPoint authenticationEntryPoint)
エントリポイントを簡単に設定できます。- パラメーター:
authenticationEntryPoint
- 使用するServerAuthenticationEntryPoint
- 戻り値:
- 追加のカスタマイズのための
ServerHttpSecurity.HttpBasicSpec
- 導入:
- 5.2.0
and
public ServerHttpSecurity and()
メソッドチェーンがServerHttpSecurity
の構成を続行できるようにします- 戻り値:
ServerHttpSecurity
の構成を続行するには
disable
public ServerHttpSecurity disable()
HTTP 基本認証を無効にします。- 戻り値:
ServerHttpSecurity
の構成を続行するには
configure
protected void configure(ServerHttpSecurity http)