org.springframework.richclient.security
Class RemotingSecurityConfigurer

Show UML class diagram
java.lang.Object
  extended by 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,BurlapProxyFactoryBeanand 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
           
 
Constructor Summary
RemotingSecurityConfigurer()
           
 
Method Summary
 void onApplicationEvent(ApplicationEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.commons.logging.Log logger
Constructor Detail

RemotingSecurityConfigurer

public RemotingSecurityConfigurer()
Method Detail

onApplicationEvent

public void onApplicationEvent(ApplicationEvent event)
Specified by:
onApplicationEvent in interface ApplicationListener


Copyright © 2004-2009 The Spring Framework. All Rights Reserved.