|
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| Field Summary | |
|---|---|
protected AuthenticationDetailsSource |
authenticationDetailsSource
|
| Constructor Summary | |
|---|---|
SpringSecurityLoginCommand(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 |
AuthenticationManager |
getAuthManager()
Returns the Spring Security AuthenticationManager |
boolean |
isPerClientAuthentication()
Checks whether per-client authentication is enabled |
boolean |
logout(Principal principal)
|
protected void |
setDetails(javax.servlet.http.HttpServletRequest request,
UsernamePasswordAuthenticationToken authRequest)
Provided so that subclasses may configure what is put into the authentication request's details property. |
void |
setLogoutHandlers(List<LogoutHandler> logoutHandlers)
|
void |
setPerClientAuthentication(boolean perClientAuthentication)
|
void |
setRememberMeServices(RememberMeServices rememberMeServices)
|
void |
setSessionAuthenticationStrategy(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 |
| Field Detail |
|---|
protected AuthenticationDetailsSource authenticationDetailsSource
| Constructor Detail |
|---|
public SpringSecurityLoginCommand(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 LoginCommand
public boolean doAuthorization(Principal principal,
List roles)
doAuthorization in interface LoginCommandpublic AuthenticationManager getAuthManager()
AuthenticationManager
public boolean isPerClientAuthentication()
public boolean logout(Principal principal)
logout in interface LoginCommandpublic void setLogoutHandlers(List<LogoutHandler> logoutHandlers)
public void setPerClientAuthentication(boolean perClientAuthentication)
public void setRememberMeServices(RememberMeServices rememberMeServices)
public void setSessionAuthenticationStrategy(SessionAuthenticationStrategy sessionStrategy)
public void start(javax.servlet.ServletConfig config)
start in interface LoginCommandpublic void stop()
stop in interface LoginCommandprotected String extractPassword(Object credentials)
credentials - the Flex client credentials
protected void setDetails(javax.servlet.http.HttpServletRequest request,
UsernamePasswordAuthenticationToken authRequest)
request - that an authentication request is being created forauthRequest - the authentication request object that should have its details set
|
Spring BlazeDS Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||