Package org.springframework.security.messaging.context
@NullMarked
package org.springframework.security.messaging.context
Support for establishing the
SecurityContext within messaging.-
ClassesClassDescriptionAllows resolving the
Authentication.getPrincipal()using theAuthenticationPrincipalannotation.Creates aExecutorChannelInterceptorthat will obtain theAuthenticationfrom the specifiedMessage.getHeaders().AnExecutorChannelInterceptorthat takes anAuthenticationfrom the currentSecurityContext(if any) in theSecurityContextPropagationChannelInterceptor.preSend(Message, MessageChannel)callback and stores it into anSecurityContextPropagationChannelInterceptor.authenticationHeaderNamemessage header.