クラス SecuredAuthorizationManager
java.lang.ObjectSE
org.springframework.security.authorization.method.SecuredAuthorizationManager
- 実装されているすべてのインターフェース:
AuthorizationManager<org.aopalliance.intercept.MethodInvocation>
public final class SecuredAuthorizationManager
extends ObjectSE
implements AuthorizationManager<org.aopalliance.intercept.MethodInvocation>
Authentication に Spring Security の Secured アノテーションからの指定された権限が含まれているかどうかを評価することにより、Authentication が MethodInvocation を呼び出すことができるかどうかを判別できる AuthorizationManager。- 導入:
- 5.6
コンストラクターの概要
コンストラクター方法の概要
修飾子と型メソッド説明@Nullable AuthorizationResultauthorize(SupplierSE<? extends @Nullable Authentication> authentication, org.aopalliance.intercept.MethodInvocation mi) 特定の認証およびオブジェクトにアクセスを許可するかどうかを決定します。voidsetAuthoritiesAuthorizationManager(AuthorizationManager<CollectionSE<StringSE>> authoritiesAuthorizationManager) 権限文字列のコレクションを受け入れるAuthorizationManagerを設定します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.security.authorization.AuthorizationManager から継承されたメソッド
verify
コンストラクターの詳細
SecuredAuthorizationManager
public SecuredAuthorizationManager()
メソッドの詳細
setAuthoritiesAuthorizationManager
public void setAuthoritiesAuthorizationManager(AuthorizationManager<CollectionSE<StringSE>> authoritiesAuthorizationManager) 権限文字列のコレクションを受け入れるAuthorizationManagerを設定します。- パラメーター:
authoritiesAuthorizationManager- 使用する権限文字列のコレクションを受け入れるAuthorizationManager- 導入:
- 6.1
authorize
public @Nullable AuthorizationResult authorize(SupplierSE<? extends @Nullable Authentication> authentication, org.aopalliance.intercept.MethodInvocation mi) インターフェースからコピーされた説明:AuthorizationManager特定の認証およびオブジェクトにアクセスを許可するかどうかを決定します。- 次で指定:
- インターフェース
AuthorizationManager<org.aopalliance.intercept.MethodInvocation>のauthorize - パラメーター:
authentication-AuthenticationのSupplierSE を承認するmi- 承認するAuthorizationManagerオブジェクト- 戻り値:
AuthorizationResult