Previously working with removing Spring HTTP HTTP calls, I can say that there is built-in support for transferring Spring security tokens. I would suggest that the Spring RMI solution also has this feature, but you need to delve into the RMI / javadoc classes in Spring to confirm this.
On the client side, you will need the ContextPropagatingRemoteInvocationFactory class, which will automatically enable the Spring security context when remotely invoked.
Steved
source share