クラス 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
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 ServerHttpSecurityand()メソッドチェーンがServerHttpSecurityの構成を続行できるようにしますServerHttpSecurity.AnonymousSpecauthenticationFilter(AnonymousAuthenticationWebFilter authenticationFilter)匿名ユーザーの入力に使用されるAnonymousAuthenticationWebFilterを設定します。ServerHttpSecurity.AnonymousSpecauthorities(java.lang.String... authorities)匿名ユーザーのAuthentication.getAuthorities()を設定しますServerHttpSecurity.AnonymousSpecauthorities(java.util.List<GrantedAuthority> authorities)匿名ユーザーのAuthentication.getAuthorities()を設定しますprotected voidconfigure(ServerHttpSecurity http)ServerHttpSecuritydisable()匿名認証を無効にします。ServerHttpSecurity.AnonymousSpeckey(java.lang.String key)匿名認証用に作成されたトークンを識別するためのキーを設定します。ServerHttpSecurity.AnonymousSpecprincipal(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)