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.
4.0
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, setValidateConfigAttributes
public ChannelSecurityInterceptor(MessageSecurityMetadataSource metadataSource)
metadataSource
- the MessageSecurityMetadataSource to use. Cannot be null.DefaultMessageSecurityMetadataSource
,
ExpressionBasedMessageSecurityMetadataSourceFactory
public Class<?> getSecureObjectClass()
getSecureObjectClass
in class org.springframework.security.access.intercept.AbstractSecurityInterceptor
public org.springframework.security.access.SecurityMetadataSource obtainSecurityMetadataSource()
obtainSecurityMetadataSource
in class org.springframework.security.access.intercept.AbstractSecurityInterceptor
public org.springframework.messaging.Message<?> preSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)
preSend
in interface org.springframework.messaging.support.ChannelInterceptor
public void postSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel, boolean sent)
postSend
in interface org.springframework.messaging.support.ChannelInterceptor
public void afterSendCompletion(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel, boolean sent, Exception ex)
afterSendCompletion
in interface org.springframework.messaging.support.ChannelInterceptor
public boolean preReceive(org.springframework.messaging.MessageChannel channel)
preReceive
in interface org.springframework.messaging.support.ChannelInterceptor
public org.springframework.messaging.Message<?> postReceive(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)
postReceive
in interface org.springframework.messaging.support.ChannelInterceptor
public void afterReceiveCompletion(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel, Exception ex)
afterReceiveCompletion
in interface org.springframework.messaging.support.ChannelInterceptor