|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.flex.security.SpringSecurityLoginCommand
public class SpringSecurityLoginCommand
Custom BlazeDS LoginCommand that uses Spring Security for Authentication and Authorization.
Should be configured as a Spring bean and given a reference to the current AuthenticationManager. It must be
added to the MessageBrokerFactoryBean's list of MessageBrokerConfigProcessors.
Will be configured automatically when using the secured tag in the xml config namespace.
MessageBrokerFactoryBean| Constructor Summary | |
|---|---|
SpringSecurityLoginCommand(org.springframework.security.AuthenticationManager authManager)
Creates a new SpringSecurityLoginCommand with the provided AuthenticationManager |
|
| Method Summary | |
|---|---|
java.security.Principal |
doAuthentication(java.lang.String username,
java.lang.Object credentials)
|
boolean |
doAuthorization(java.security.Principal principal,
java.util.List roles)
|
protected java.lang.String |
extractPassword(java.lang.Object credentials)
Extracts the password from the Flex client credentials |
org.springframework.security.AuthenticationManager |
getAuthManager()
Returns the Spring Security AuthenticationManager |
boolean |
isPerClientAuthentication()
Checks whether per-client authentication is enabled |
boolean |
logout(java.security.Principal principal)
|
flex.messaging.MessageBroker |
processAfterStartup(flex.messaging.MessageBroker broker)
Apply this config processor to the newly created MessageBroker after it and all of its services have been
started but before it is available for use. |
flex.messaging.MessageBroker |
processBeforeStartup(flex.messaging.MessageBroker broker)
Apply this config processor to the newly created MessageBroker after its intial configuration settings
have been parsed from the BlazeDS XML configuration, but before it has actually been started. |
void |
setPerClientAuthentication(boolean perClientAuthentication)
Configures the per-client authentication setting for the BlazeDS login manager |
void |
start(javax.servlet.ServletConfig config)
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringSecurityLoginCommand(org.springframework.security.AuthenticationManager authManager)
AuthenticationManager
authManager - the authentication manager| Method Detail |
|---|
public java.security.Principal doAuthentication(java.lang.String username,
java.lang.Object credentials)
doAuthentication in interface flex.messaging.security.LoginCommand
public boolean doAuthorization(java.security.Principal principal,
java.util.List roles)
doAuthorization in interface flex.messaging.security.LoginCommandpublic org.springframework.security.AuthenticationManager getAuthManager()
AuthenticationManager
public boolean isPerClientAuthentication()
public boolean logout(java.security.Principal principal)
logout in interface flex.messaging.security.LoginCommandpublic flex.messaging.MessageBroker processAfterStartup(flex.messaging.MessageBroker broker)
MessageBroker after it and all of its services have been
started but before it is available for use.
processAfterStartup in interface MessageBrokerConfigProcessorbroker - the started MessageBroker instance
MessageBrokerpublic flex.messaging.MessageBroker processBeforeStartup(flex.messaging.MessageBroker broker)
MessageBroker after its intial configuration settings
have been parsed from the BlazeDS XML configuration, but before it has actually been started.
processBeforeStartup in interface MessageBrokerConfigProcessorbroker - the new MessageBroker instance
MessageBrokerpublic void setPerClientAuthentication(boolean perClientAuthentication)
perClientAuthentication - true if per-client authentication is enabledpublic void start(javax.servlet.ServletConfig config)
start in interface flex.messaging.security.LoginCommandpublic void stop()
stop in interface flex.messaging.security.LoginCommandprotected java.lang.String extractPassword(java.lang.Object credentials)
credentials - the Flex client credentials
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||