パッケージ org.springframework.security.messaging.context
パッケージ org.springframework.security.messaging.context
- クラスクラス説明
AuthenticationPrincipalアノテーションを使用してAuthentication.getPrincipal()を解決できます。SecurityContextPropagationChannelInterceptor.preSend(Message, MessageChannel)コールバック内の現在のSecurityContext(存在する場合) からAuthenticationを取得し、それをSecurityContextPropagationChannelInterceptor.authenticationHeaderNameメッセージヘッダーに格納するExecutorChannelInterceptor。