クラス SecuredAuthorizationManager

  • 実装されたすべてのインターフェース:
    AuthorizationManager<org.aopalliance.intercept.MethodInvocation>

    public final class SecuredAuthorizationManager
    extends java.lang.Object
    implements AuthorizationManager<org.aopalliance.intercept.MethodInvocation>
    Authentication に Spring Security の Secured アノテーションからの指定された権限が含まれているかどうかを評価することにより、Authentication が MethodInvocation を呼び出すことができるかどうかを判別できる AuthorizationManager
    導入:
    5.6
    • メソッドのサマリー

      すべてのメソッド   インスタンスメソッド   具象メソッド  
      修飾子と型 メソッド 説明
      AuthorizationDecisioncheck​(java.util.function.Supplier<Authentication> authentication, org.aopalliance.intercept.MethodInvocation mi)
      MethodInvocation が指定する Secured アノテーションを評価することにより、Authentication がメソッドにアクセスできるかどうかを判別します。
      • クラス java.lang.Object から継承されたメソッド

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • インターフェース org.springframework.security.authorization.AuthorizationManager から継承されたメソッド

        verify
    • コンストラクターの詳細

      • SecuredAuthorizationManager

        public SecuredAuthorizationManager()
    • メソッドの詳細

      • check

        public AuthorizationDecision check​(java.util.function.Supplier<Authentication> authentication,
                                           org.aopalliance.intercept.MethodInvocation mi)
        MethodInvocation が指定する Secured アノテーションを評価することにより、Authentication がメソッドにアクセスできるかどうかを判別します。
        次で指定:
        インターフェース AuthorizationManager<org.aopalliance.intercept.MethodInvocation>check 
        パラメーター:
        authentication - チェックする Authentication の Supplier 
        mi - チェックする MethodInvocation 
        戻り値:
        AuthorizationDecision または Secured アノテーションが存在しない場合は null