Package org.apache.shiro.spring.remoting
Class SecureRemoteInvocationExecutor
- java.lang.Object
-
- org.springframework.remoting.support.DefaultRemoteInvocationExecutor
-
- org.apache.shiro.spring.remoting.SecureRemoteInvocationExecutor
-
- All Implemented Interfaces:
org.springframework.remoting.support.RemoteInvocationExecutor
public class SecureRemoteInvocationExecutor extends org.springframework.remoting.support.DefaultRemoteInvocationExecutorAn implementation of the SpringRemoteInvocationExecutorthat binds asessionIdto the incoming thread to make it available to theSecurityManagerimplementation during the thread execution. TheSecurityManagerimplementation can use this sessionId to reconstitute theSubjectinstance based on persistent state in the correspondingSession.- Since:
- 0.1
-
-
Constructor Summary
Constructors Constructor Description SecureRemoteInvocationExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectinvoke(org.springframework.remoting.support.RemoteInvocation invocation, Object targetObject)voidsetSecurityManager(org.apache.shiro.mgt.SecurityManager securityManager)
-
-
-
Method Detail
-
setSecurityManager
public void setSecurityManager(org.apache.shiro.mgt.SecurityManager securityManager)
-
invoke
public Object invoke(org.springframework.remoting.support.RemoteInvocation invocation, Object targetObject) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
- Specified by:
invokein interfaceorg.springframework.remoting.support.RemoteInvocationExecutor- Overrides:
invokein classorg.springframework.remoting.support.DefaultRemoteInvocationExecutor- Throws:
NoSuchMethodExceptionIllegalAccessExceptionInvocationTargetException
-
-