public class SecureRemoteInvocationFactory
extends org.springframework.remoting.support.DefaultRemoteInvocationFactory
RemoteInvocationFactory that passes the session ID to the server via a
RemoteInvocation attribute.
This factory is the client-side part of
the Shiro Spring remoting invocation. A SecureRemoteInvocationExecutor should
be used to export the server-side remote services to ensure that the appropriate
Subject and Session are bound to the remote thread during execution.| Modifier and Type | Field and Description |
|---|---|
static String |
HOST_KEY |
static String |
SESSION_ID_KEY |
| Constructor and Description |
|---|
SecureRemoteInvocationFactory() |
SecureRemoteInvocationFactory(String sessionId) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.remoting.support.RemoteInvocation |
createRemoteInvocation(org.aopalliance.intercept.MethodInvocation mi)
Creates a
RemoteInvocation with the current session ID as an
attribute. |
public static final String SESSION_ID_KEY
public static final String HOST_KEY
public SecureRemoteInvocationFactory()
public SecureRemoteInvocationFactory(String sessionId)
public org.springframework.remoting.support.RemoteInvocation createRemoteInvocation(org.aopalliance.intercept.MethodInvocation mi)
RemoteInvocation with the current session ID as an
attribute.createRemoteInvocation in interface org.springframework.remoting.support.RemoteInvocationFactorycreateRemoteInvocation in class org.springframework.remoting.support.DefaultRemoteInvocationFactorymi - the method invocation that the remote invocation should be based on.Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.