public final class ChannelSecurityInterceptor extends AbstractSecurityInterceptor
The SecurityMetadataSource
required by this security interceptor is of
type MessageSecurityMetadataSource
.
Refer to AbstractSecurityInterceptor
for details on the workflow.
logger, messages
Constructor and Description |
---|
ChannelSecurityInterceptor(MessageSecurityMetadataSource metadataSource)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
void |
afterReceiveCompletion(<any> message,
MessageChannel channel,
java.lang.Exception ex) |
void |
afterSendCompletion(<any> message,
MessageChannel channel,
boolean sent,
java.lang.Exception ex) |
java.lang.Class<?> |
getSecureObjectClass()
Indicates the type of secure objects the subclass will be presenting to the
abstract parent for processing.
|
SecurityMetadataSource |
obtainSecurityMetadataSource() |
<any> |
postReceive(<any> message,
MessageChannel channel) |
void |
postSend(<any> message,
MessageChannel channel,
boolean sent) |
boolean |
preReceive(MessageChannel channel) |
<any> |
preSend(<any> message,
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 java.lang.Class<?> getSecureObjectClass()
AbstractSecurityInterceptor
AbstractSecurityInterceptor
all support the indicated secure object class.getSecureObjectClass
in class AbstractSecurityInterceptor
public SecurityMetadataSource obtainSecurityMetadataSource()
obtainSecurityMetadataSource
in class AbstractSecurityInterceptor
public <any> preSend(<any> message, MessageChannel channel)
public void postSend(<any> message, MessageChannel channel, boolean sent)
public void afterSendCompletion(<any> message, MessageChannel channel, boolean sent, java.lang.Exception ex)
public boolean preReceive(MessageChannel channel)
public <any> postReceive(<any> message, MessageChannel channel)
public void afterReceiveCompletion(<any> message, MessageChannel channel, java.lang.Exception ex)