JSecurity

org.jsecurity.spring.remoting
Class SecureRemoteInvocationFactory

java.lang.Object
  extended by org.springframework.remoting.support.DefaultRemoteInvocationFactory
      extended by org.jsecurity.spring.remoting.SecureRemoteInvocationFactory
All Implemented Interfaces:
RemoteInvocationFactory

public class SecureRemoteInvocationFactory
extends DefaultRemoteInvocationFactory

A RemoteInvocationFactory that passes the session ID to the server via a RemoteInvocation attribute. This factory is the client-side part of the JSecurity Spring remoting invocation. A SecureRemoteInvocationExecutor should be used to export the server-side remote services to ensure that the appropriate Subject and Session are bound to the remote thread during execution.

Since:
0.1
Author:
Jeremy Haile, Les Hazlewood

Field Summary
static String SESSION_ID_KEY
           
 
Constructor Summary
SecureRemoteInvocationFactory()
           
 
Method Summary
 RemoteInvocation createRemoteInvocation(org.aopalliance.intercept.MethodInvocation methodInvocation)
          Creates a RemoteInvocation with the current session ID as an attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SESSION_ID_KEY

public static final String SESSION_ID_KEY
Constructor Detail

SecureRemoteInvocationFactory

public SecureRemoteInvocationFactory()
Method Detail

createRemoteInvocation

public RemoteInvocation createRemoteInvocation(org.aopalliance.intercept.MethodInvocation methodInvocation)
Creates a RemoteInvocation with the current session ID as an attribute.

Specified by:
createRemoteInvocation in interface RemoteInvocationFactory
Overrides:
createRemoteInvocation in class DefaultRemoteInvocationFactory
Parameters:
methodInvocation - the method invocation that the remote invocation should be based on.
Returns:
a remote invocation object containing the current session ID as an attribute.

JSecurity

Copyright © 2004-2008 JSecurity.