Spring BlazeDS Integration

org.springframework.flex.security3
Class AuthenticationResultUtils

java.lang.Object
  extended by org.springframework.flex.security3.AuthenticationResultUtils

public abstract class AuthenticationResultUtils
extends Object

Helper that ensures consistent handling of a Spring Security Authentication, providing translation to a structure that will be useful to a Flex client in determining the credentials of an authenticated user.

When this helper is used to convert the Authentication into a BlazeDS message, the body of the returned message will contain the following properties as obtained from the Authentication object:

Author:
Jeremy Grelle

Constructor Summary
AuthenticationResultUtils()
           
 
Method Summary
static Map<String,Object> getAuthenticationResult()
          Checks for an Authentication object in the current SecurityContext and if one is found, constructs and returns a map that will result in an object of the expected format when returned to the Flex client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationResultUtils

public AuthenticationResultUtils()
Method Detail

getAuthenticationResult

public static Map<String,Object> getAuthenticationResult()
Checks for an Authentication object in the current SecurityContext and if one is found, constructs and returns a map that will result in an object of the expected format when returned to the Flex client.

Returns:
a map of the Authentication properties to be serialized over AMF, or null if no Authentication is found

Spring BlazeDS Integration

Copyright © 2011. All Rights Reserved.