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:
RemoteInvocationExecutor
public class SecureRemoteInvocationExecutor extends DefaultRemoteInvocationExecutor
An implementation of the SpringRemoteInvocationExecutor
that binds asessionId
to the incoming thread to make it available to theSecurityManager
implementation during the thread execution. TheSecurityManager
implementation can use this sessionId to reconstitute theSubject
instance 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 Object
invoke(RemoteInvocation invocation, Object targetObject)
void
setSecurityManager(SecurityManager securityManager)
-
-
-
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 interfaceRemoteInvocationExecutor
- Overrides:
invoke
in classDefaultRemoteInvocationExecutor
- Throws:
NoSuchMethodException
IllegalAccessException
InvocationTargetException
-
-