クラス PreAuthorizeAuthorizationManager
- java.lang.Object
-
- org.springframework.security.authorization.method.PreAuthorizeAuthorizationManager
- 実装されたすべてのインターフェース:
AuthorizationManager<org.aopalliance.intercept.MethodInvocation>
public final class PreAuthorizeAuthorizationManager extends java.lang.Object implements AuthorizationManager<org.aopalliance.intercept.MethodInvocation>
PreAuthorize
アノテーションからの式を評価することにより、Authentication
がMethodInvocation
を呼び出すことができるかどうかを判別できるAuthorizationManager
。- 導入:
- 5.6
コンストラクターのサマリー
コンストラクター コンストラクター 説明 PreAuthorizeAuthorizationManager()
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 AuthorizationDecision
check(java.util.function.Supplier<Authentication> authentication, org.aopalliance.intercept.MethodInvocation mi)
void
setExpressionHandler(MethodSecurityExpressionHandler expressionHandler)
MethodSecurityExpressionHandler
を設定します。クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
インターフェース org.springframework.security.authorization.AuthorizationManager から継承されたメソッド
verify
メソッドの詳細
setExpressionHandler
public void setExpressionHandler(MethodSecurityExpressionHandler expressionHandler)
MethodSecurityExpressionHandler
を設定します。- パラメーター:
expressionHandler
- 使用するMethodSecurityExpressionHandler
check
public AuthorizationDecision check(java.util.function.Supplier<Authentication> authentication, org.aopalliance.intercept.MethodInvocation mi)
- 次で指定:
- インターフェース
AuthorizationManager<org.aopalliance.intercept.MethodInvocation>
のcheck
- パラメーター:
authentication
- チェックするAuthentication
のSupplier
mi
- チェックするMethodInvocation
- 戻り値:
PreAuthorize
アノテーションが存在しない場合はAuthorizationDecision
またはnull