JSecurity

org.jsecurity.spring.remoting
Class SecureRemoteInvocationExecutor

java.lang.Object
  extended by org.springframework.remoting.support.DefaultRemoteInvocationExecutor
      extended by org.jsecurity.spring.remoting.SecureRemoteInvocationExecutor
All Implemented Interfaces:
RemoteInvocationExecutor

public class SecureRemoteInvocationExecutor
extends DefaultRemoteInvocationExecutor

An implementation of the Spring RemoteInvocationExecutor that binds the correct Session and Subject to the remote invocation thread during a remote execution.

Since:
0.1
Author:
Jeremy Haile, Les Hazlewood

Constructor Summary
SecureRemoteInvocationExecutor()
           
 
Method Summary
protected  InetAddress getInetAddress(RemoteInvocation invocation, Object targetObject)
           
protected  PrincipalCollection getPrincipals(RemoteInvocation invocation, Object targetObject, Session session)
           
 Object invoke(RemoteInvocation invocation, Object targetObject)
           
protected  boolean isAuthenticated(RemoteInvocation invocation, Object targetObject, Session session, PrincipalCollection principals)
           
 void setSecurityManager(SecurityManager securityManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureRemoteInvocationExecutor

public SecureRemoteInvocationExecutor()
Method Detail

setSecurityManager

public void setSecurityManager(SecurityManager securityManager)

getInetAddress

protected InetAddress getInetAddress(RemoteInvocation invocation,
                                     Object targetObject)

getPrincipals

protected PrincipalCollection getPrincipals(RemoteInvocation invocation,
                                            Object targetObject,
                                            Session session)

isAuthenticated

protected boolean isAuthenticated(RemoteInvocation invocation,
                                  Object targetObject,
                                  Session session,
                                  PrincipalCollection principals)

invoke

public Object invoke(RemoteInvocation invocation,
                     Object targetObject)
              throws NoSuchMethodException,
                     IllegalAccessException,
                     InvocationTargetException
Specified by:
invoke in interface RemoteInvocationExecutor
Overrides:
invoke in class DefaultRemoteInvocationExecutor
Throws:
NoSuchMethodException
IllegalAccessException
InvocationTargetException

JSecurity

Copyright © 2004-2008 JSecurity.