SecurityContextHolder (Authentication リクエストトークンを含める必要があります)を伝搬します。参照先: 説明
| クラス | 説明 |
|---|---|
| ContextPropagatingRemoteInvocation | クライアントからサーバーに渡される実際の RemoteInvocation。 |
| ContextPropagatingRemoteInvocationFactory | リモート呼び出しを作成するときに、 org.springframework.remoting.rmi.RmiProxyFactoryBean のクライアント側インスタンスによって呼び出されます。 |
SecurityContextHolder (Authentication リクエストトークンを含める必要があります)を伝搬します。Bean は次のように接続されています。
<bean id="test" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<property name="serviceUrl"><value>rmi://localhost/Test</value></property>
<property name="serviceInterface"><value>test.TargetInterface</value></property>
<property name="refreshStubOnConnectFailure"><value>true</value></property>
<property name="remoteInvocationFactory"><ref bean="remoteInvocationFactory"/></property>
</bean>
<bean id="remoteInvocationFactory"
class="org.springframework.security.remoting.rmi.ContextPropagatingRemoteInvocationFactory"/>