インターフェース AuthorizationManager<T extends @Nullable ObjectSE>
- 型パラメーター:
T- 認可検査が行われているオブジェクトの型。
- すべての既知の実装クラス:
AllAuthoritiesAuthorizationManager、AllRequiredFactorsAuthorizationManager、AuthenticatedAuthorizationManager、AuthoritiesAuthorizationManager、AuthorityAuthorizationManager、IpAddressAuthorizationManager、Jsr250AuthorizationManager、MessageMatcherDelegatingAuthorizationManager、MethodExpressionAuthorizationManager、ObservationAuthorizationManager、PostAuthorizeAuthorizationManager、PreAuthorizeAuthorizationManager、RequestMatcherDelegatingAuthorizationManager、RequiredAuthoritiesAuthorizationManager、SecuredAuthorizationManager、SingleResultAuthorizationManager、WebExpressionAuthorizationManager
- 関数インターフェース:
- これは関数インターフェースであるため、ラムダ式またはメソッド参照の割り当てターゲットとして使用できます。
Authentication が特定のオブジェクトにアクセスできるかどうかを判別できる認可マネージャー。メソッドのサマリー
修飾子と型メソッド説明@Nullable AuthorizationResultauthorize(SupplierSE<? extends @Nullable Authentication> authentication, T object) 特定の認証およびオブジェクトにアクセスを許可するかどうかを決定します。default voidverify(SupplierSE<? extends @Nullable Authentication> authentication, T object) 特定の認証とオブジェクトにアクセスを許可するかどうかを決定します。
メソッドの詳細
verify
特定の認証とオブジェクトにアクセスを許可するかどうかを決定します。- パラメーター:
authentication- チェックするAuthenticationのSupplierSEobject- チェックするAuthorizationManagerオブジェクト- 例外:
AccessDeniedException- アクセスが許可されていない場合
authorize
@Nullable AuthorizationResult authorize(SupplierSE<? extends @Nullable Authentication> authentication, T object) 特定の認証およびオブジェクトにアクセスを許可するかどうかを決定します。- パラメーター:
authentication-AuthenticationのSupplierSE を承認するobject- 承認するAuthorizationManagerオブジェクト- 戻り値:
AuthorizationResult- 導入:
- 6.4