クラス 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
  • メソッドの詳細

    • authorize

      public reactor.core.publisher.Mono<AuthorizationResult> authorize(reactor.core.publisher.Mono<Authentication> authentication, T object)
      インターフェースからコピーされた説明: ReactiveAuthorizationManager
      特定の認証およびオブジェクトにアクセスを許可するかどうかを決定します。
      次で指定:
      インターフェース ReactiveAuthorizationManager<T>authorize 
      パラメーター:
      authentication - 承認するための認証
      object - チェックするオブジェクト
      戻り値:
      決定できない場合は、決定または空の Mono。
    • hasAuthority

      public static <T> AuthorityReactiveAuthorizationManager<T> hasAuthority(StringSE authority)
      指定された権限で AuthorityReactiveAuthorizationManager のインスタンスを作成します。
      型パラメーター:
      T - 認可されるオブジェクトの型
      パラメーター:
      authority - チェックする権限
      戻り値:
      新しいインスタンス
    • hasAnyAuthority

      public static <T> AuthorityReactiveAuthorizationManager<T> hasAnyAuthority(StringSE... authorities)
      指定された権限で AuthorityReactiveAuthorizationManager のインスタンスを作成します。
      型パラメーター:
      T - 認可されるオブジェクトの型
      パラメーター:
      authorities - チェックする権限
      戻り値:
      新しいインスタンス
    • hasRole

      public static <T> AuthorityReactiveAuthorizationManager<T> hasRole(StringSE role)
      指定された権限で AuthorityReactiveAuthorizationManager のインスタンスを作成します。
      型パラメーター:
      T - 認可されるオブジェクトの型
      パラメーター:
      role - "ROLE_" で始まるチェック対象の権限
      戻り値:
      新しいインスタンス
    • hasAnyRole

      public static <T> AuthorityReactiveAuthorizationManager<T> hasAnyRole(StringSE... roles)
      指定された権限で AuthorityReactiveAuthorizationManager のインスタンスを作成します。
      型パラメーター:
      T - 認可されるオブジェクトの型
      パラメーター:
      roles - "ROLE_" で始まるチェック対象の権限
      戻り値:
      新しいインスタンス