Class ChannelSecurityInterceptor

java.lang.Object
org.springframework.security.access.intercept.AbstractSecurityInterceptor
org.springframework.security.messaging.access.intercept.ChannelSecurityInterceptor
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.MessageSourceAware, org.springframework.messaging.support.ChannelInterceptor

@Deprecated public final class ChannelSecurityInterceptor extends org.springframework.security.access.intercept.AbstractSecurityInterceptor implements org.springframework.messaging.support.ChannelInterceptor
Deprecated.
Performs security handling of Message resources via a ChannelInterceptor implementation.

The SecurityMetadataSource required by this security interceptor is of type MessageSecurityMetadataSource.

Refer to AbstractSecurityInterceptor for details on the workflow.

Since:
4.0
  • Field Summary

    Fields inherited from class org.springframework.security.access.intercept.AbstractSecurityInterceptor

    logger, messages
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Creates a new instance
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterReceiveCompletion(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel, Exception ex)
    Deprecated.
     
    void
    afterSendCompletion(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel, boolean sent, Exception ex)
    Deprecated.
     
    Deprecated.
     
    org.springframework.security.access.SecurityMetadataSource
    Deprecated.
     
    org.springframework.messaging.Message<?>
    postReceive(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)
    Deprecated.
     
    void
    postSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel, boolean sent)
    Deprecated.
     
    boolean
    preReceive(org.springframework.messaging.MessageChannel channel)
    Deprecated.
     
    org.springframework.messaging.Message<?>
    preSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)
    Deprecated.
     

    Methods inherited from class org.springframework.security.access.intercept.AbstractSecurityInterceptor

    afterInvocation, afterPropertiesSet, beforeInvocation, finallyInvocation, getAccessDecisionManager, getAfterInvocationManager, getAuthenticationManager, getRunAsManager, isAlwaysReauthenticate, isRejectPublicInvocations, isValidateConfigAttributes, setAccessDecisionManager, setAfterInvocationManager, setAlwaysReauthenticate, setApplicationEventPublisher, setAuthenticationManager, setMessageSource, setPublishAuthorizationSuccess, setRejectPublicInvocations, setRunAsManager, setSecurityContextHolderStrategy, setValidateConfigAttributes

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getSecureObjectClass

      public Class<?> getSecureObjectClass()
      Deprecated.
      Specified by:
      getSecureObjectClass in class org.springframework.security.access.intercept.AbstractSecurityInterceptor
    • obtainSecurityMetadataSource

      public org.springframework.security.access.SecurityMetadataSource obtainSecurityMetadataSource()
      Deprecated.
      Specified by:
      obtainSecurityMetadataSource in class org.springframework.security.access.intercept.AbstractSecurityInterceptor
    • preSend

      public org.springframework.messaging.Message<?> preSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)
      Deprecated.
      Specified by:
      preSend in interface org.springframework.messaging.support.ChannelInterceptor
    • postSend

      public void postSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel, boolean sent)
      Deprecated.
      Specified by:
      postSend in interface org.springframework.messaging.support.ChannelInterceptor
    • afterSendCompletion

      public void afterSendCompletion(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel, boolean sent, Exception ex)
      Deprecated.
      Specified by:
      afterSendCompletion in interface org.springframework.messaging.support.ChannelInterceptor
    • preReceive

      public boolean preReceive(org.springframework.messaging.MessageChannel channel)
      Deprecated.
      Specified by:
      preReceive in interface org.springframework.messaging.support.ChannelInterceptor
    • postReceive

      public org.springframework.messaging.Message<?> postReceive(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)
      Deprecated.
      Specified by:
      postReceive in interface org.springframework.messaging.support.ChannelInterceptor
    • afterReceiveCompletion

      public void afterReceiveCompletion(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel, Exception ex)
      Deprecated.
      Specified by:
      afterReceiveCompletion in interface org.springframework.messaging.support.ChannelInterceptor