public class SecurityContextPropagationChannelInterceptor extends ThreadStatePropagationChannelInterceptor<org.springframework.security.core.Authentication>
MessageChannel を介した別のスレッドへの SecurityContext の伝播を担当する ExecutorChannelInterceptor 実装。 さらに、このインターセプターは、ExecutorChannel や QueueChannel などのチャネルのコンテナースレッド内の SecurityContext をクリーンアップ(復元)します。
ThreadStatePropagationChannelInterceptor| コンストラクターと説明 |
|---|
SecurityContextPropagationChannelInterceptor() |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | afterMessageHandled(Message<?> message, MessageChannel channel, MessageHandler handler, ExceptionSE ex) |
protected org.springframework.security.core.Authentication | obtainPropagatingContext(Message<?> message, MessageChannel channel) |
protected void | populatePropagatedContext(org.springframework.security.core.Authentication authentication, Message<?> message, MessageChannel channel) |
beforeHandle, postReceive, preSendcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEafterReceiveCompletion, afterSendCompletion, postSend, preReceivepublic SecurityContextPropagationChannelInterceptor()
public void afterMessageHandled(Message<?> message, MessageChannel channel, MessageHandler handler, ExceptionSE ex)
ExecutorChannelInterceptor 内の afterMessageHandled ThreadStatePropagationChannelInterceptor<org.springframework.security.core.Authentication> の afterMessageHandled protected org.springframework.security.core.Authentication obtainPropagatingContext(Message<?> message, MessageChannel channel)
ThreadStatePropagationChannelInterceptor<org.springframework.security.core.Authentication> の obtainPropagatingContext protected void populatePropagatedContext(org.springframework.security.core.Authentication authentication,
Message<?> message,
MessageChannel channel)ThreadStatePropagationChannelInterceptor<org.springframework.security.core.Authentication> の populatePropagatedContext