org.springframework.integration.security.channel
Class SecurityEnforcingChannelInterceptor
java.lang.Object
org.springframework.integration.channel.interceptor.ChannelInterceptorAdapter
org.springframework.integration.security.channel.SecurityEnforcingChannelInterceptor
- All Implemented Interfaces:
- ChannelInterceptor
public class SecurityEnforcingChannelInterceptor
- extends ChannelInterceptorAdapter
Delegates to the provided instance of AccessDecisionManager
to
enforce the security on the send and receive calls of the MessageChannel
.
- Author:
- Jonas Partner, Mark Fisher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
accessDecisionManger
private final org.springframework.security.AccessDecisionManager accessDecisionManger
sendSecurityAttributes
private volatile org.springframework.security.ConfigAttributeDefinition sendSecurityAttributes
receiveSecurityAttributes
private volatile org.springframework.security.ConfigAttributeDefinition receiveSecurityAttributes
SecurityEnforcingChannelInterceptor
public SecurityEnforcingChannelInterceptor(org.springframework.security.AccessDecisionManager accessDecisionManager)
getSendSecurityAttributes
public org.springframework.security.ConfigAttributeDefinition getSendSecurityAttributes()
setSendSecurityAttributes
public void setSendSecurityAttributes(org.springframework.security.ConfigAttributeDefinition sendSecurityAttributes)
getReceiveSecurityAttributes
public org.springframework.security.ConfigAttributeDefinition getReceiveSecurityAttributes()
setReceiveSecurityAttributes
public void setReceiveSecurityAttributes(org.springframework.security.ConfigAttributeDefinition receiveSecurityAttributes)
preSend
public Message<?> preSend(Message<?> message,
MessageChannel channel)
- Specified by:
preSend
in interface ChannelInterceptor
- Overrides:
preSend
in class ChannelInterceptorAdapter
preReceive
public boolean preReceive(MessageChannel channel)
- Specified by:
preReceive
in interface ChannelInterceptor
- Overrides:
preReceive
in class ChannelInterceptorAdapter
checkSend
private void checkSend(MessageChannel channel)
checkReceive
private void checkReceive(MessageChannel channel)
checkPermission
private void checkPermission(MessageChannel messageChannel,
org.springframework.security.ConfigAttributeDefinition securityAttributes)