クラス ServerHttpSecurity.AnonymousSpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.AnonymousSpec
- 含まれているクラス:
- ServerHttpSecurity
public final class ServerHttpSecurity.AnonymousSpec extends java.lang.Object
匿名認証を構成します- 導入:
- 5.2.0
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 ServerHttpSecurity
and()
メソッドチェーンがServerHttpSecurity
の構成を続行できるようにしますServerHttpSecurity.AnonymousSpec
authenticationFilter(AnonymousAuthenticationWebFilter authenticationFilter)
匿名ユーザーの入力に使用されるAnonymousAuthenticationWebFilter
を設定します。ServerHttpSecurity.AnonymousSpec
authorities(java.lang.String... authorities)
匿名ユーザーのAuthentication.getAuthorities()
を設定しますServerHttpSecurity.AnonymousSpec
authorities(java.util.List<GrantedAuthority> authorities)
匿名ユーザーのAuthentication.getAuthorities()
を設定しますprotected void
configure(ServerHttpSecurity http)
ServerHttpSecurity
disable()
匿名認証を無効にします。ServerHttpSecurity.AnonymousSpec
key(java.lang.String key)
匿名認証用に作成されたトークンを識別するためのキーを設定します。ServerHttpSecurity.AnonymousSpec
principal(java.lang.Object principal)
匿名ユーザーのAuthentication
オブジェクトのプリンシパルを設定します
メソッドの詳細
key
public ServerHttpSecurity.AnonymousSpec key(java.lang.String key)
匿名認証用に作成されたトークンを識別するためのキーを設定します。デフォルトは、ランダムに生成された安全なキーです。- パラメーター:
key
- 匿名認証用に作成されたトークンを識別するためのキー。デフォルトは、ランダムに生成された安全なキーです。- 戻り値:
- 匿名認証をさらにカスタマイズするための
ServerHttpSecurity.AnonymousSpec
principal
public ServerHttpSecurity.AnonymousSpec principal(java.lang.Object principal)
匿名ユーザーのAuthentication
オブジェクトのプリンシパルを設定します- パラメーター:
principal
- 匿名ユーザーのAuthentication
オブジェクトに使用されます- 戻り値:
- 匿名認証をさらにカスタマイズするための
ServerHttpSecurity.AnonymousSpec
authorities
public ServerHttpSecurity.AnonymousSpec authorities(java.util.List<GrantedAuthority> authorities)
匿名ユーザーのAuthentication.getAuthorities()
を設定します- パラメーター:
authorities
- 匿名ユーザーのAuthentication.getAuthorities()
を設定します- 戻り値:
- 匿名認証をさらにカスタマイズするための
ServerHttpSecurity.AnonymousSpec
authorities
public ServerHttpSecurity.AnonymousSpec authorities(java.lang.String... authorities)
匿名ユーザーのAuthentication.getAuthorities()
を設定します- パラメーター:
authorities
- 匿名ユーザーのAuthentication.getAuthorities()
を設定します (つまり、"ROLE_ANONYMOUS" )- 戻り値:
- 匿名認証をさらにカスタマイズするための
ServerHttpSecurity.AnonymousSpec
authenticationFilter
public ServerHttpSecurity.AnonymousSpec authenticationFilter(AnonymousAuthenticationWebFilter authenticationFilter)
匿名ユーザーの入力に使用されるAnonymousAuthenticationWebFilter
を設定します。これが設定されている場合、ServerHttpSecurity.AnonymousSpec
の属性はAnonymousAuthenticationWebFilter
に設定されません。- パラメーター:
authenticationFilter
- 匿名ユーザーの入力に使用されるAnonymousAuthenticationWebFilter
- 戻り値:
- 匿名認証をさらにカスタマイズするための
ServerHttpSecurity.AnonymousSpec
and
public ServerHttpSecurity and()
メソッドチェーンがServerHttpSecurity
の構成を続行できるようにします- 戻り値:
ServerHttpSecurity
の構成を続行するには
disable
public ServerHttpSecurity disable()
匿名認証を無効にします。- 戻り値:
ServerHttpSecurity
の構成を続行するには
configure
protected void configure(ServerHttpSecurity http)