org.apache.shiro.spring.remoting
Class SecureRemoteInvocationExecutor

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

public class SecureRemoteInvocationExecutor
extends DefaultRemoteInvocationExecutor

An implementation of the Spring RemoteInvocationExecutor that binds a sessionId to the incoming thread to make it available to the SecurityManager implementation during the thread execution. The SecurityManager implementation can use this sessionId to reconstitute the Subject instance based on persistent state in the corresponding Session.

Since:
0.1

Constructor Summary
SecureRemoteInvocationExecutor()
           
 
Method Summary
 Object invoke(RemoteInvocation invocation, Object targetObject)
           
 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)

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


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.