クラス RequiredAuthoritiesAuthorizationManager<T>
java.lang.ObjectSE
org.springframework.security.authorization.RequiredAuthoritiesAuthorizationManager<T>
- 型パラメーター:
T- 型
- 実装されているすべてのインターフェース:
AuthorizationManager<T>
public class RequiredAuthoritiesAuthorizationManager<T>
extends ObjectSE
implements AuthorizationManager<T>
RequiredAuthoritiesRepository 実装によって返されるすべての権限を必要とする AuthorizationManager。- 導入:
- 7.0
- 関連事項:
コンストラクターの概要
コンストラクターコンストラクター説明新しいインスタンスを作成します。方法の概要
修飾子と型メソッド説明@Nullable AuthorizationResultauthorize(SupplierSE<? extends @Nullable Authentication> authentication, T object) 特定の認証およびオブジェクトにアクセスを許可するかどうかを決定します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.security.authorization.AuthorizationManager から継承されたメソッド
verify
コンストラクターの詳細
RequiredAuthoritiesAuthorizationManager
新しいインスタンスを作成します。- パラメーター:
authorities- 使用するRequiredAuthoritiesRepository。null にはできません。
メソッドの詳細
authorize
public @Nullable AuthorizationResult authorize(SupplierSE<? extends @Nullable Authentication> authentication, T object) インターフェースからコピーされた説明:AuthorizationManager特定の認証およびオブジェクトにアクセスを許可するかどうかを決定します。- 次で指定:
- インターフェース
AuthorizationManager<T>のauthorize - パラメーター:
authentication-AuthenticationのSupplierSE を承認するobject- 承認するAuthorizationManagerオブジェクト- 戻り値:
AuthorizationResult