public final class ChannelSecurityInterceptor extends 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.
4.0logger, messages| 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()
Indicates the type of secure objects the subclass will be presenting to
the abstract parent for processing.
|
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()
AbstractSecurityInterceptorAbstractSecurityInterceptor all support the
indicated secure object class.getSecureObjectClass in class AbstractSecurityInterceptorpublic SecurityMetadataSource obtainSecurityMetadataSource()
obtainSecurityMetadataSource in class 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