インターフェース AuthorizationManager<T extends @Nullable ObjectSE>

型パラメーター:
T - 認可検査が行われているオブジェクトの型。
すべての既知の実装クラス:
AllAuthoritiesAuthorizationManager, AllRequiredFactorsAuthorizationManager, AuthenticatedAuthorizationManager, AuthoritiesAuthorizationManager, AuthorityAuthorizationManager, IpAddressAuthorizationManager, Jsr250AuthorizationManager, MessageMatcherDelegatingAuthorizationManager, MethodExpressionAuthorizationManager, ObservationAuthorizationManager, PostAuthorizeAuthorizationManager, PreAuthorizeAuthorizationManager, RequestMatcherDelegatingAuthorizationManager, RequiredAuthoritiesAuthorizationManager, SecuredAuthorizationManager, SingleResultAuthorizationManager, WebExpressionAuthorizationManager
関数インターフェース:
これは関数インターフェースであるため、ラムダ式またはメソッド参照の割り当てターゲットとして使用できます。

@FunctionalInterfaceSE public interface AuthorizationManager<T extends @Nullable ObjectSE>
Authentication が特定のオブジェクトにアクセスできるかどうかを判別できる認可マネージャー。
  • 方法の概要

    修飾子と型
    メソッド
    説明
    authorize(SupplierSE<? extends @Nullable Authentication> authentication, T object)
    特定の認証およびオブジェクトにアクセスを許可するかどうかを決定します。
    default void
    verify(SupplierSE<? extends @Nullable Authentication> authentication, T object)
    特定の認証とオブジェクトにアクセスを許可するかどうかを決定します。
  • メソッドの詳細

    • verify

      default void verify(SupplierSE<? extends @Nullable Authentication> authentication, T object)
      特定の認証とオブジェクトにアクセスを許可するかどうかを決定します。
      パラメーター:
      authentication - チェックする AuthenticationSupplierSE
      object - チェックする T オブジェクト
      例外:
      AccessDeniedException - アクセスが許可されていない場合
    • authorize

      @Nullable AuthorizationResult authorize(SupplierSE<? extends @Nullable Authentication> authentication, T object)
      特定の認証およびオブジェクトにアクセスを許可するかどうかを決定します。
      パラメーター:
      authentication - AuthenticationSupplierSE を承認する
      object - 承認する T オブジェクト
      戻り値:
      AuthorizationResult
      導入:
      6.4