クラス AuthoritiesAuthorizationManager
java.lang.ObjectSE
org.springframework.security.authorization.AuthoritiesAuthorizationManager
- 実装されているすべてのインターフェース:
AuthorizationManager<CollectionSE<StringSE>>
public final class AuthoritiesAuthorizationManager
extends ObjectSE
implements AuthorizationManager<CollectionSE<StringSE>>
指定された権限のいずれかが
Authentication に含まれているかどうかを評価することによって、現行ユーザーが認可されているかどうかを判別する AuthorizationManager。- 導入:
- 6.1
コンストラクターの概要
コンストラクター方法の概要
修飾子と型メソッド説明authorize(SupplierSE<? extends @Nullable Authentication> authentication, CollectionSE<StringSE> authorities) Authenticationに指定された権限が含まれているかどうかを評価することによって、現在のユーザーが認可されているかどうかを判別します。voidsetRoleHierarchy(RoleHierarchy roleHierarchy) 使用するRoleHierarchyを設定します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.security.authorization.AuthorizationManager から継承されたメソッド
verify
コンストラクターの詳細
AuthoritiesAuthorizationManager
public AuthoritiesAuthorizationManager()
メソッドの詳細
setRoleHierarchy
使用するRoleHierarchyを設定します。デフォルトはNullRoleHierarchyです。null にすることはできません。- パラメーター:
roleHierarchy- 使用するRoleHierarchy
authorize
public AuthorizationResult authorize(SupplierSE<? extends @Nullable Authentication> authentication, CollectionSE<StringSE> authorities) Authenticationに指定された権限が含まれているかどうかを評価することによって、現在のユーザーが認可されているかどうかを判別します。- 次で指定:
- インターフェース
AuthorizationManager<CollectionSE<StringSE>>のauthorize - パラメーター:
authentication- チェックするAuthenticationのSupplierSEauthorities- チェックする権限文字列のコレクション- 戻り値:
AuthorityAuthorizationDecision