org.springframework.flex.security
Class LoginMessageInterceptor
java.lang.Object
org.springframework.flex.security.LoginMessageInterceptor
- All Implemented Interfaces:
- MessageInterceptor
public class LoginMessageInterceptor
- extends java.lang.Object
- implements MessageInterceptor
MessageInterceptor
implementation that replaces the standard login success message with one that contains
relevant information about the logged in user.
The body of the returned message will contain the following properties as obtained from the Authentication
object:
- name - the "name" property from the authentication
- authorities - an array of String representations of the authentication's authorities (i.e. obtained through
GrantedAuthority.getAuthority()
)
- Author:
- Jeremy Grelle
Method Summary |
flex.messaging.messages.Message |
postProcess(MessageProcessingContext context,
flex.messaging.messages.Message inputMessage,
flex.messaging.messages.Message outputMessage)
Hook for post-processing the outgoing AMF Message |
flex.messaging.messages.Message |
preProcess(MessageProcessingContext context,
flex.messaging.messages.Message inputMessage)
Hook for pre-processing the incoming AMF Message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoginMessageInterceptor
public LoginMessageInterceptor()
postProcess
public flex.messaging.messages.Message postProcess(MessageProcessingContext context,
flex.messaging.messages.Message inputMessage,
flex.messaging.messages.Message outputMessage)
- Hook for post-processing the outgoing AMF
Message
- Specified by:
postProcess
in interface MessageInterceptor
- Parameters:
context
- context for the current requestinputMessage
- the incoming AMF messageoutputMessage
- the outgoing AMF message
- Returns:
- the AMF message to send in response
preProcess
public flex.messaging.messages.Message preProcess(MessageProcessingContext context,
flex.messaging.messages.Message inputMessage)
- Hook for pre-processing the incoming AMF
Message
- Specified by:
preProcess
in interface MessageInterceptor
- Parameters:
context
- context for the current requestinputMessage
- the incoming AMF message
- Returns:
- the AMF message to process in the current request