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