|
Spring BlazeDS Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.flex.security3.LoginMessageInterceptor
public class LoginMessageInterceptor
MessageInterceptor
implementation that replaces the standard login success message with one that contains
relevant information about the logged in user.
AuthenticationResultUtils
Constructor Summary | |
---|---|
LoginMessageInterceptor()
|
Method Summary | |
---|---|
protected Object |
getAuthenticationResult()
Converts the current Authentication object into a format suitable for AMF serialization back to the calling client. |
Message |
postProcess(MessageProcessingContext context,
Message inputMessage,
Message outputMessage)
Hook for post-processing the outgoing AMF Message |
Message |
preProcess(MessageProcessingContext context,
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 |
Constructor Detail |
---|
public LoginMessageInterceptor()
Method Detail |
---|
public Message postProcess(MessageProcessingContext context, Message inputMessage, Message outputMessage)
Message
postProcess
in interface MessageInterceptor
context
- context for the current requestinputMessage
- the incoming AMF messageoutputMessage
- the outgoing AMF message
public Message preProcess(MessageProcessingContext context, Message inputMessage)
Message
preProcess
in interface MessageInterceptor
context
- context for the current requestinputMessage
- the incoming AMF message
protected Object getAuthenticationResult()
Authentication
object into a format suitable for AMF serialization back to the calling client.
This is an intended extension point for providing a custom conversion strategy, for example, to additionally provide
information from a UserDetails
object. The default implementation calls AuthenticationResultUtils.getAuthenticationResult()
to convert the Authentication
into a simple Map of the user's principal and granted authorities. A more ambitious
implementation might map onto a custom domain object for which there is a parallel ActionScript object on the client.
To provide such a custom strategy, one would extend this class and replace the default implementation in the MessageInterceptor
chain by
utilizing the position
attribute of the message-interceptor
configuration tag.
|
Spring BlazeDS Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |