クラス AuthorityReactiveAuthorizationManager<T>
java.lang.ObjectSE
org.springframework.security.authorization.AuthorityReactiveAuthorizationManager<T>
- 型パラメーター:
T
- 認可されるオブジェクトの型
- 実装されたすべてのインターフェース:
ReactiveAuthorizationManager<T>
public class AuthorityReactiveAuthorizationManager<T>
extends ObjectSE
implements ReactiveAuthorizationManager<T>
Authentication
に指定された権限が含まれているかどうかを評価することにより、現行ユーザーが認可されているかどうかを判別する ReactiveAuthorizationManager
。- 導入:
- 5.0
メソッドのサマリー
修飾子と型メソッド説明reactor.core.publisher.Mono<AuthorizationDecision>
check
(reactor.core.publisher.Mono<Authentication> authentication, T object) 特定の認証およびオブジェクトにアクセスを許可するかどうかを決定します。static <T> AuthorityReactiveAuthorizationManager<T>
hasAnyAuthority
(StringSE... authorities) 指定された権限でAuthorityReactiveAuthorizationManager
のインスタンスを作成します。static <T> AuthorityReactiveAuthorizationManager<T>
hasAnyRole
(StringSE... roles) 指定された権限でAuthorityReactiveAuthorizationManager
のインスタンスを作成します。static <T> AuthorityReactiveAuthorizationManager<T>
hasAuthority
(StringSE authority) 指定された権限でAuthorityReactiveAuthorizationManager
のインスタンスを作成します。static <T> AuthorityReactiveAuthorizationManager<T>
指定された権限でAuthorityReactiveAuthorizationManager
のインスタンスを作成します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.security.authorization.ReactiveAuthorizationManager から継承されたメソッド
authorize, verify
メソッドの詳細
check
public reactor.core.publisher.Mono<AuthorizationDecision> check(reactor.core.publisher.Mono<Authentication> authentication, T object) インターフェースからコピーされた説明:ReactiveAuthorizationManager
特定の認証およびオブジェクトにアクセスを許可するかどうかを決定します。- 次で指定:
- インターフェース
ReactiveAuthorizationManager<T>
のcheck
- パラメーター:
authentication
- 確認する認証object
- チェックするオブジェクト- 戻り値:
- 決定できない場合は、決定または空の Mono。
hasAuthority
指定された権限でAuthorityReactiveAuthorizationManager
のインスタンスを作成します。- 型パラメーター:
T
- 認可されるオブジェクトの型- パラメーター:
authority
- チェックする権限- 戻り値:
- 新しいインスタンス
hasAnyAuthority
指定された権限でAuthorityReactiveAuthorizationManager
のインスタンスを作成します。- 型パラメーター:
T
- 認可されるオブジェクトの型- パラメーター:
authorities
- チェックする権限- 戻り値:
- 新しいインスタンス
hasRole
指定された権限でAuthorityReactiveAuthorizationManager
のインスタンスを作成します。- 型パラメーター:
T
- 認可されるオブジェクトの型- パラメーター:
role
- "ROLE_" で始まるチェック対象の権限- 戻り値:
- 新しいインスタンス
hasAnyRole
指定された権限でAuthorityReactiveAuthorizationManager
のインスタンスを作成します。- 型パラメーター:
T
- 認可されるオブジェクトの型- パラメーター:
roles
- "ROLE_" で始まるチェック対象の権限- 戻り値:
- 新しいインスタンス