クラス ServerHttpSecurity.AuthorizeExchangeSpec.Access
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.AuthorizeExchangeSpec.Access
- 含まれているクラス:
- ServerHttpSecurity.AuthorizeExchangeSpec
public final class ServerHttpSecurity.AuthorizeExchangeSpec.Access extends java.lang.Object
特定の交換セットのアクセスを構成します。
コンストラクターのサマリー
コンストラクター コンストラクター 説明 Access()
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 ServerHttpSecurity.AuthorizeExchangeSpec
access(ReactiveAuthorizationManager<AuthorizationContext> manager)
カスタム認可戦略のプラグインを認可しますServerHttpSecurity.AuthorizeExchangeSpec
authenticated()
認証されたユーザーを要求するServerHttpSecurity.AuthorizeExchangeSpec
denyAll()
全員のアクセスを拒否するServerHttpSecurity.AuthorizeExchangeSpec
hasAnyAuthority(java.lang.String... authorities)
権限が必要ServerHttpSecurity.AuthorizeExchangeSpec
hasAnyRole(java.lang.String... roles)
特定のロールが必要です。ServerHttpSecurity.AuthorizeExchangeSpec
hasAuthority(java.lang.String authority)
特定の権限が必要です。ServerHttpSecurity.AuthorizeExchangeSpec
hasIpAddress(java.lang.String ipAddress)
IP/ ネットマスクを使用して特定の IP アドレスまたは範囲を要求します(例:ServerHttpSecurity.AuthorizeExchangeSpec
hasRole(java.lang.String role)
特定のロールが必要です。ServerHttpSecurity.AuthorizeExchangeSpec
permitAll()
誰でもアクセスできるようにする
メソッドの詳細
permitAll
public ServerHttpSecurity.AuthorizeExchangeSpec permitAll()
誰でもアクセスできるようにする- 戻り値:
- 構成する
ServerHttpSecurity.AuthorizeExchangeSpec
denyAll
public ServerHttpSecurity.AuthorizeExchangeSpec denyAll()
全員のアクセスを拒否する- 戻り値:
- 構成する
ServerHttpSecurity.AuthorizeExchangeSpec
hasRole
public ServerHttpSecurity.AuthorizeExchangeSpec hasRole(java.lang.String role)
特定のロールが必要です。これはhasAuthority(String)
のショートカットです- パラメーター:
role
- ロール (つまり、"USER" には "ROLE_USER" が必要です。)- 戻り値:
- 構成する
ServerHttpSecurity.AuthorizeExchangeSpec
hasAnyRole
public ServerHttpSecurity.AuthorizeExchangeSpec hasAnyRole(java.lang.String... roles)
特定のロールが必要です。これはhasAnyAuthority(String...)
のショートカットです- パラメーター:
roles
- ロール (つまり、"USER" には "ROLE_USER" が必要です。)- 戻り値:
- 構成する
ServerHttpSecurity.AuthorizeExchangeSpec
hasAuthority
public ServerHttpSecurity.AuthorizeExchangeSpec hasAuthority(java.lang.String authority)
特定の権限が必要です。- パラメーター:
authority
- 要求する権限(つまり、"USER" には "USER" の権限が必要です)。- 戻り値:
- 構成する
ServerHttpSecurity.AuthorizeExchangeSpec
hasAnyAuthority
public ServerHttpSecurity.AuthorizeExchangeSpec hasAnyAuthority(java.lang.String... authorities)
権限が必要- パラメーター:
authorities
- 必要な権限(つまり、"USER" には "USER" の権限が必要です)。- 戻り値:
- 構成する
ServerHttpSecurity.AuthorizeExchangeSpec
authenticated
public ServerHttpSecurity.AuthorizeExchangeSpec authenticated()
認証されたユーザーを要求する- 戻り値:
- 構成する
ServerHttpSecurity.AuthorizeExchangeSpec
hasIpAddress
public ServerHttpSecurity.AuthorizeExchangeSpec hasIpAddress(java.lang.String ipAddress)
IP/ ネットマスクを使用して特定の IP アドレスまたは範囲を要求します (例: 192.168.1.0/24)。- パラメーター:
ipAddress
- リクエストの送信元のアドレスまたはアドレスの範囲。- 戻り値:
- 構成する
ServerHttpSecurity.AuthorizeExchangeSpec
- 導入:
- 5.7
access
public ServerHttpSecurity.AuthorizeExchangeSpec access(ReactiveAuthorizationManager<AuthorizationContext> manager)
カスタム認可戦略のプラグインを認可します- パラメーター:
manager
- 使用する認可マネージャー- 戻り値:
- 構成する
ServerHttpSecurity.AuthorizeExchangeSpec