public final class ChannelSecurityInterceptor
extends org.springframework.security.access.intercept.AbstractSecurityInterceptor
implements org.springframework.messaging.support.ChannelInterceptor
The SecurityMetadataSource required by this security interceptor is of
type MessageSecurityMetadataSource.
Refer to AbstractSecurityInterceptor for details on the workflow.
| Constructor and Description |
|---|
ChannelSecurityInterceptor(MessageSecurityMetadataSource metadataSource)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterReceiveCompletion(org.springframework.messaging.Message<?> message,
org.springframework.messaging.MessageChannel channel,
Exception ex) |
void |
afterSendCompletion(org.springframework.messaging.Message<?> message,
org.springframework.messaging.MessageChannel channel,
boolean sent,
Exception ex) |
Class<?> |
getSecureObjectClass() |
org.springframework.security.access.SecurityMetadataSource |
obtainSecurityMetadataSource() |
org.springframework.messaging.Message<?> |
postReceive(org.springframework.messaging.Message<?> message,
org.springframework.messaging.MessageChannel channel) |
void |
postSend(org.springframework.messaging.Message<?> message,
org.springframework.messaging.MessageChannel channel,
boolean sent) |
boolean |
preReceive(org.springframework.messaging.MessageChannel channel) |
org.springframework.messaging.Message<?> |
preSend(org.springframework.messaging.Message<?> message,
org.springframework.messaging.MessageChannel channel) |
afterInvocation, afterPropertiesSet, beforeInvocation, finallyInvocation, getAccessDecisionManager, getAfterInvocationManager, getAuthenticationManager, getRunAsManager, isAlwaysReauthenticate, isRejectPublicInvocations, isValidateConfigAttributes, setAccessDecisionManager, setAfterInvocationManager, setAlwaysReauthenticate, setApplicationEventPublisher, setAuthenticationManager, setMessageSource, setPublishAuthorizationSuccess, setRejectPublicInvocations, setRunAsManager, setValidateConfigAttributespublic ChannelSecurityInterceptor(MessageSecurityMetadataSource metadataSource)
metadataSource - the MessageSecurityMetadataSource to use. Cannot be null.DefaultMessageSecurityMetadataSource,
ExpressionBasedMessageSecurityMetadataSourceFactorypublic Class<?> getSecureObjectClass()
getSecureObjectClass in class org.springframework.security.access.intercept.AbstractSecurityInterceptorpublic org.springframework.security.access.SecurityMetadataSource obtainSecurityMetadataSource()
obtainSecurityMetadataSource in class org.springframework.security.access.intercept.AbstractSecurityInterceptorpublic org.springframework.messaging.Message<?> preSend(org.springframework.messaging.Message<?> message,
org.springframework.messaging.MessageChannel channel)
preSend in interface org.springframework.messaging.support.ChannelInterceptorpublic void postSend(org.springframework.messaging.Message<?> message,
org.springframework.messaging.MessageChannel channel,
boolean sent)
postSend in interface org.springframework.messaging.support.ChannelInterceptorpublic void afterSendCompletion(org.springframework.messaging.Message<?> message,
org.springframework.messaging.MessageChannel channel,
boolean sent,
Exception ex)
afterSendCompletion in interface org.springframework.messaging.support.ChannelInterceptorpublic boolean preReceive(org.springframework.messaging.MessageChannel channel)
preReceive in interface org.springframework.messaging.support.ChannelInterceptorpublic org.springframework.messaging.Message<?> postReceive(org.springframework.messaging.Message<?> message,
org.springframework.messaging.MessageChannel channel)
postReceive in interface org.springframework.messaging.support.ChannelInterceptorpublic void afterReceiveCompletion(org.springframework.messaging.Message<?> message,
org.springframework.messaging.MessageChannel channel,
Exception ex)
afterReceiveCompletion in interface org.springframework.messaging.support.ChannelInterceptor