クラス ServerHttpSecurity.AnonymousSpec
java.lang.ObjectSE
org.springframework.security.config.web.server.ServerHttpSecurity.AnonymousSpec
- 含まれているクラス:
ServerHttpSecurity
方法の概要
修飾子と型メソッド説明authenticationFilter(AnonymousAuthenticationWebFilter authenticationFilter) 匿名ユーザーの入力に使用されるAnonymousAuthenticationWebFilterを設定します。authorities(StringSE... authorities) 匿名ユーザーのAuthentication.getAuthorities()を設定しますauthorities(ListSE<GrantedAuthority> authorities) 匿名ユーザーのAuthentication.getAuthorities()を設定しますprotected voidconfigure(ServerHttpSecurity http) disable()匿名認証を無効にします。匿名認証用に作成されたトークンを識別するためのキーを設定します。匿名ユーザーのAuthenticationオブジェクトのプリンシパルを設定します
メソッドの詳細
key
匿名認証用に作成されたトークンを識別するためのキーを設定します。デフォルトは、ランダムに生成された安全なキーです。- パラメーター:
key- 匿名認証用に作成されたトークンを識別するためのキー。デフォルトは、ランダムに生成された安全なキーです。- 戻り値:
- 匿名認証をさらにカスタマイズするための
ServerHttpSecurity.AnonymousSpec
principal
匿名ユーザーのAuthenticationオブジェクトのプリンシパルを設定します- パラメーター:
principal- 匿名ユーザーのAuthenticationオブジェクトに使用されます- 戻り値:
- 匿名認証をさらにカスタマイズするための
ServerHttpSecurity.AnonymousSpec
authorities
匿名ユーザーのAuthentication.getAuthorities()を設定します- パラメーター:
authorities- 匿名ユーザーのAuthentication.getAuthorities()を設定します- 戻り値:
- 匿名認証をさらにカスタマイズするための
ServerHttpSecurity.AnonymousSpec
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
disable
configure