|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.flex.messaging.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)
|
|
| 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)
|
org.springframework.security.AuthenticationManager |
getAuthManager()
|
boolean |
isInvalidateFlexSession()
|
boolean |
isPerClientAuthentication()
|
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 |
setInvalidateFlexSession(boolean invalidateFlexSession)
|
void |
setPerClientAuthentication(boolean perClientAuthentication)
|
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)
| Method Detail |
|---|
public void setInvalidateFlexSession(boolean invalidateFlexSession)
public void setPerClientAuthentication(boolean perClientAuthentication)
public org.springframework.security.AuthenticationManager getAuthManager()
public boolean isInvalidateFlexSession()
public boolean isPerClientAuthentication()
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 boolean logout(java.security.Principal principal)
logout in interface flex.messaging.security.LoginCommandpublic void start(javax.servlet.ServletConfig config)
start in interface flex.messaging.security.LoginCommandpublic void stop()
stop in interface flex.messaging.security.LoginCommandpublic flex.messaging.MessageBroker processAfterStartup(flex.messaging.MessageBroker broker)
MessageBrokerConfigProcessor
processAfterStartup in interface MessageBrokerConfigProcessorbroker - the started MessageBroker instance
public flex.messaging.MessageBroker processBeforeStartup(flex.messaging.MessageBroker broker)
MessageBrokerConfigProcessor
processBeforeStartup in interface MessageBrokerConfigProcessorbroker - the new MessageBroker instance
protected java.lang.String extractPassword(java.lang.Object credentials)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||