org.springframework.richclient.security
Class RemotingSecurityConfigurer
java.lang.Object
org.springframework.richclient.security.RemotingSecurityConfigurer
- All Implemented Interfaces:
- EventListener, ApplicationListener
public class RemotingSecurityConfigurer
- extends Object
- implements ApplicationListener
Correctly configures the username and password on Spring's remoting proxy
factory beans.
This bean works with "Spring Remoting Proxy Factories" defined in the
application context. Presently this includes the following Spring classes:
HessianProxyFactoryBean
,BurlapProxyFactoryBean
and JaxRpcPortProxyFactoryBean
.
This bean listens for any ClientSecurityEvent
and responds as
follows:
Upon receipt of a LoginEvent
, any Spring Remoting Proxy Factories
will be located. Each located bean will have its username and password
methods set to the LoginEvent
's principal and credentials
respectively.
Upon receipt of a LogoutEvent
, any Spring Remoting Proxy Factories
will be located. Each located bean will have its username and password
methods set to null
.
- Author:
- Ben Alex
Field Summary |
protected static org.apache.commons.logging.Log |
logger
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.apache.commons.logging.Log logger
RemotingSecurityConfigurer
public RemotingSecurityConfigurer()
onApplicationEvent
public void onApplicationEvent(ApplicationEvent event)
- Specified by:
onApplicationEvent
in interface ApplicationListener
Copyright © 2004-2009 The Spring Framework. All Rights Reserved.