クラス MethodSecurityInterceptor

java.lang.ObjectSE
org.springframework.security.access.intercept.AbstractSecurityInterceptor
org.springframework.security.access.intercept.aopalliance.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

@DeprecatedSE public class MethodSecurityInterceptor extends AbstractSecurityInterceptor implements org.aopalliance.intercept.MethodInterceptor
使用すべきではありません。
AOP アライアンスベースのメソッド呼び出しのセキュリティインターセプトを提供します。

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

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

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

    • MethodSecurityInterceptor

      public MethodSecurityInterceptor()
      使用すべきではありません。
  • メソッドの詳細

    • getSecureObjectClass

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

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

      public MethodSecurityMetadataSource getSecurityMetadataSource()
      使用すべきではありません。
    • obtainSecurityMetadataSource

      public SecurityMetadataSource obtainSecurityMetadataSource()
      使用すべきではありません。
      次で指定:
      クラス AbstractSecurityInterceptorobtainSecurityMetadataSource 
    • setSecurityMetadataSource

      public void setSecurityMetadataSource(MethodSecurityMetadataSource newSource)
      使用すべきではありません。