|
Spring BlazeDS Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.flex.security3.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.authentication.AuthenticationManager authManager)
Creates a new SpringSecurityLoginCommand with the provided AuthenticationManager |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
Principal |
doAuthentication(String username,
Object credentials)
|
boolean |
doAuthorization(Principal principal,
List roles)
|
protected String |
extractPassword(Object credentials)
Extracts the password from the Flex client credentials |
org.springframework.security.authentication.AuthenticationManager |
getAuthManager()
Returns the Spring Security AuthenticationManager |
boolean |
isPerClientAuthentication()
Checks whether per-client authentication is enabled |
boolean |
logout(Principal principal)
|
void |
setLogoutHandlers(List<org.springframework.security.web.authentication.logout.LogoutHandler> logoutHandlers)
|
void |
setPerClientAuthentication(boolean perClientAuthentication)
|
void |
setRememberMeServices(org.springframework.security.web.authentication.RememberMeServices rememberMeServices)
|
void |
setSessionAuthenticationStrategy(org.springframework.security.web.authentication.session.SessionAuthenticationStrategy sessionStrategy)
|
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.authentication.AuthenticationManager authManager)
AuthenticationManager
authManager - the authentication manager| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanException
public Principal doAuthentication(String username,
Object credentials)
doAuthentication in interface flex.messaging.security.LoginCommand
public boolean doAuthorization(Principal principal,
List roles)
doAuthorization in interface flex.messaging.security.LoginCommandpublic org.springframework.security.authentication.AuthenticationManager getAuthManager()
AuthenticationManager
public boolean isPerClientAuthentication()
public boolean logout(Principal principal)
logout in interface flex.messaging.security.LoginCommandpublic void setLogoutHandlers(List<org.springframework.security.web.authentication.logout.LogoutHandler> logoutHandlers)
public void setPerClientAuthentication(boolean perClientAuthentication)
public void setRememberMeServices(org.springframework.security.web.authentication.RememberMeServices rememberMeServices)
public void setSessionAuthenticationStrategy(org.springframework.security.web.authentication.session.SessionAuthenticationStrategy sessionStrategy)
public void start(javax.servlet.ServletConfig config)
start in interface flex.messaging.security.LoginCommandpublic void stop()
stop in interface flex.messaging.security.LoginCommandprotected String extractPassword(Object credentials)
credentials - the Flex client credentials
|
Spring BlazeDS Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||