クラス MethodSecurityInterceptor

  • 実装されたすべてのインターフェース:
    org.aopalliance.aop.Adviceorg.aopalliance.intercept.Interceptororg.aopalliance.intercept.MethodInterceptororg.springframework.beans.factory.Awareorg.springframework.beans.factory.InitializingBeanorg.springframework.context.ApplicationEventPublisherAwareorg.springframework.context.MessageSourceAware
    既知の直属サブクラス
    AspectJMethodSecurityInterceptor

    public class MethodSecurityInterceptor
    extends AbstractSecurityInterceptor
    implements org.aopalliance.intercept.MethodInterceptor
    AOP アライアンスベースのメソッド呼び出しのセキュリティインターセプトを提供します。

    このセキュリティインターセプターが必要とする SecurityMetadataSource は、型 MethodSecurityMetadataSource です。どちらも Java Method で動作するため、これは AspectJ ベースのセキュリティインターセプター(AspectJSecurityInterceptor)と共有されます。

    ワークフローの詳細については、AbstractSecurityInterceptor を参照してください。

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

      • MethodSecurityInterceptor

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

      • getSecureObjectClass

        public java.lang.Class<?> getSecureObjectClass()
        クラスからコピーされた説明: AbstractSecurityInterceptor
        サブクラスが処理のために抽象親に提示するセキュアオブジェクトの型を示します。これは、AbstractSecurityInterceptor に接続されたコラボレーターがすべて、指定されたセキュアオブジェクトクラスをサポートするようにするために使用されます。
        次で指定:
        クラス AbstractSecurityInterceptorgetSecureObjectClass 
        戻り値:
        サブクラスがサービスを提供する安全なオブジェクトの型
      • invoke

        public java.lang.Object invoke​(org.aopalliance.intercept.MethodInvocation mi)
                                throws java.lang.Throwable
        このメソッドは、MethodInvocation のセキュリティを強化するために使用する必要があります。
        次で指定:
        インターフェース org.aopalliance.intercept.MethodInterceptorinvoke 
        パラメーター:
        mi - セキュリティの決定を必要とする、呼び出されているメソッド
        戻り値:
        メソッド呼び出しからの戻り値(AfterInvocationManager によって変更される可能性があります)。
        例外:
        java.lang.Throwable - エラーが発生した場合