クラス ChannelSecurityInterceptor

  • 実装されたすべてのインターフェース:
    org.springframework.beans.factory.Awareorg.springframework.beans.factory.InitializingBeanorg.springframework.context.ApplicationEventPublisherAwareorg.springframework.context.MessageSourceAwareorg.springframework.messaging.support.ChannelInterceptor

    @Deprecated
    public final class ChannelSecurityInterceptor
    extends AbstractSecurityInterceptor
    implements org.springframework.messaging.support.ChannelInterceptor
    使用すべきではありません。
    代わりに AuthorizationChannelInterceptor を使用してください
    ChannelInterceptor 実装を介してメッセージリソースのセキュリティ処理を実行します。

    このセキュリティインターセプターに必要な SecurityMetadataSource は、型 MessageSecurityMetadataSource です。

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

    導入:
    4.0
    • メソッドの詳細

      • getSecureObjectClass

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

        public org.springframework.messaging.Message<?> preSend​(org.springframework.messaging.Message<?> message,
                                                                org.springframework.messaging.MessageChannel channel)
        使用すべきではありません。
        次で指定:
        インターフェース org.springframework.messaging.support.ChannelInterceptorpreSend 
      • postSend

        public void postSend​(org.springframework.messaging.Message<?> message,
                             org.springframework.messaging.MessageChannel channel,
                             boolean sent)
        使用すべきではありません。
        次で指定:
        インターフェース org.springframework.messaging.support.ChannelInterceptorpostSend 
      • afterSendCompletion

        public void afterSendCompletion​(org.springframework.messaging.Message<?> message,
                                        org.springframework.messaging.MessageChannel channel,
                                        boolean sent,
                                        java.lang.Exception ex)
        使用すべきではありません。
        次で指定:
        インターフェース org.springframework.messaging.support.ChannelInterceptorafterSendCompletion 
      • preReceive

        public boolean preReceive​(org.springframework.messaging.MessageChannel channel)
        使用すべきではありません。
        次で指定:
        インターフェース org.springframework.messaging.support.ChannelInterceptorpreReceive 
      • postReceive

        public org.springframework.messaging.Message<?> postReceive​(org.springframework.messaging.Message<?> message,
                                                                    org.springframework.messaging.MessageChannel channel)
        使用すべきではありません。
        次で指定:
        インターフェース org.springframework.messaging.support.ChannelInterceptorpostReceive 
      • afterReceiveCompletion

        public void afterReceiveCompletion​(org.springframework.messaging.Message<?> message,
                                           org.springframework.messaging.MessageChannel channel,
                                           java.lang.Exception ex)
        使用すべきではありません。
        次で指定:
        インターフェース org.springframework.messaging.support.ChannelInterceptorafterReceiveCompletion