Class SecureRemoteInvocationExecutor
java.lang.Object
org.springframework.remoting.support.DefaultRemoteInvocationExecutor
org.apache.shiro.spring.remoting.SecureRemoteInvocationExecutor
- All Implemented Interfaces:
RemoteInvocationExecutor
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvoke(RemoteInvocation invocation, Object targetObject) voidsetSecurityManager(org.apache.shiro.mgt.SecurityManager securityManager)
-
Constructor Details
-
SecureRemoteInvocationExecutor
public SecureRemoteInvocationExecutor()
-
-
Method Details
-
setSecurityManager
-
invoke
public Object invoke(RemoteInvocation invocation, Object targetObject) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException - Specified by:
invokein interfaceRemoteInvocationExecutor- Overrides:
invokein classDefaultRemoteInvocationExecutor- Throws:
NoSuchMethodExceptionIllegalAccessExceptionInvocationTargetException
-