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 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 SummaryFields inherited from class org.springframework.security.access.intercept.AbstractSecurityInterceptorlogger, messages
- 
Constructor SummaryConstructorsConstructorDescriptionChannelSecurityInterceptor(MessageSecurityMetadataSource metadataSource) Deprecated.Creates a new instance
- 
Method SummaryModifier and TypeMethodDescriptionvoidafterReceiveCompletion(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel, Exception ex) Deprecated.voidafterSendCompletion(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel, boolean sent, Exception ex) Deprecated.Class<?>Deprecated.Indicates the type of secure objects the subclass will be presenting to the abstract parent for processing.Deprecated.org.springframework.messaging.Message<?>postReceive(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel) Deprecated.voidpostSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel, boolean sent) Deprecated.booleanpreReceive(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.AbstractSecurityInterceptorafterInvocation, afterPropertiesSet, beforeInvocation, finallyInvocation, getAccessDecisionManager, getAfterInvocationManager, getAuthenticationManager, getRunAsManager, isAlwaysReauthenticate, isRejectPublicInvocations, isValidateConfigAttributes, setAccessDecisionManager, setAfterInvocationManager, setAlwaysReauthenticate, setApplicationEventPublisher, setAuthenticationManager, setMessageSource, setPublishAuthorizationSuccess, setRejectPublicInvocations, setRunAsManager, setSecurityContextHolderStrategy, setValidateConfigAttributes
- 
Constructor Details- 
ChannelSecurityInterceptorDeprecated.Creates a new instance- Parameters:
- metadataSource- the MessageSecurityMetadataSource to use. Cannot be null.
- See Also:
 
 
- 
- 
Method Details- 
getSecureObjectClassDeprecated.Description copied from class:AbstractSecurityInterceptorIndicates the type of secure objects the subclass will be presenting to the abstract parent for processing. This is used to ensure collaborators wired to theAbstractSecurityInterceptorall support the indicated secure object class.- Specified by:
- getSecureObjectClassin class- AbstractSecurityInterceptor
- Returns:
- the type of secure object the subclass provides services for
 
- 
obtainSecurityMetadataSourceDeprecated.- Specified by:
- obtainSecurityMetadataSourcein class- AbstractSecurityInterceptor
 
- 
preSendpublic org.springframework.messaging.Message<?> preSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel) Deprecated.- Specified by:
- preSendin interface- org.springframework.messaging.support.ChannelInterceptor
 
- 
postSendpublic void postSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel, boolean sent) Deprecated.- Specified by:
- postSendin interface- org.springframework.messaging.support.ChannelInterceptor
 
- 
afterSendCompletionpublic void afterSendCompletion(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel, boolean sent, Exception ex) Deprecated.- Specified by:
- afterSendCompletionin interface- org.springframework.messaging.support.ChannelInterceptor
 
- 
preReceivepublic boolean preReceive(org.springframework.messaging.MessageChannel channel) Deprecated.- Specified by:
- preReceivein interface- org.springframework.messaging.support.ChannelInterceptor
 
- 
postReceivepublic org.springframework.messaging.Message<?> postReceive(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel) Deprecated.- Specified by:
- postReceivein interface- org.springframework.messaging.support.ChannelInterceptor
 
- 
afterReceiveCompletionpublic void afterReceiveCompletion(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel, Exception ex) Deprecated.- Specified by:
- afterReceiveCompletionin interface- org.springframework.messaging.support.ChannelInterceptor
 
 
- 
AuthorizationChannelInterceptorinstead