Class SecurityContextPropagationChannelInterceptor
java.lang.Object
org.springframework.integration.channel.interceptor.ThreadStatePropagationChannelInterceptor<org.springframework.security.core.Authentication>
org.springframework.integration.security.channel.SecurityContextPropagationChannelInterceptor
- All Implemented Interfaces:
ChannelInterceptor
,ExecutorChannelInterceptor
@Deprecated(since="6.2",
forRemoval=true)
public class SecurityContextPropagationChannelInterceptor
extends ThreadStatePropagationChannelInterceptor<org.springframework.security.core.Authentication>
Deprecated, for removal: This API element is subject to removal in a future version.
The
ExecutorChannelInterceptor
implementation responsible for
the SecurityContext
propagation from one message flow's thread to another
through the MessageChannel
s involved in the flow.
In addition this interceptor cleans up (restores) the SecurityContext
in the containers Threads for channels like
ExecutorChannel
and QueueChannel
.
- Since:
- 4.2
- Author:
- Artem Bilan, Gary Russell
- See Also:
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterMessageHandled
(Message<?> message, MessageChannel channel, MessageHandler handler, Exception ex) Deprecated, for removal: This API element is subject to removal in a future version.protected org.springframework.security.core.Authentication
obtainPropagatingContext
(Message<?> message, MessageChannel channel) Deprecated, for removal: This API element is subject to removal in a future version.protected void
populatePropagatedContext
(org.springframework.security.core.Authentication authentication, Message<?> message, MessageChannel channel) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.springframework.integration.channel.interceptor.ThreadStatePropagationChannelInterceptor
beforeHandle, postReceive, preSend
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.messaging.support.ChannelInterceptor
afterReceiveCompletion, afterSendCompletion, postSend, preReceive
-
Constructor Details
-
SecurityContextPropagationChannelInterceptor
public SecurityContextPropagationChannelInterceptor()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
afterMessageHandled
public void afterMessageHandled(Message<?> message, MessageChannel channel, MessageHandler handler, Exception ex) Deprecated, for removal: This API element is subject to removal in a future version. -
obtainPropagatingContext
protected org.springframework.security.core.Authentication obtainPropagatingContext(Message<?> message, MessageChannel channel) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
obtainPropagatingContext
in classThreadStatePropagationChannelInterceptor<org.springframework.security.core.Authentication>
-
populatePropagatedContext
protected void populatePropagatedContext(org.springframework.security.core.Authentication authentication, Message<?> message, MessageChannel channel) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
populatePropagatedContext
in classThreadStatePropagationChannelInterceptor<org.springframework.security.core.Authentication>
-
SecurityContextPropagationChannelInterceptor