クラス 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を設定します。クラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース 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