java rmi authentication & security. exportObject makes it public?
问题 The Question: When you UnicastRemoteObject.exportObject(instance) . Does that instance now become publicly available to all clients. Even if a little tricky is required to find its port. This is the situation: I have a java RMI client/server setup and I wanted to add some authentication. Allowing the client to user a user/pass combo before any of the other RPC calls work. I found a simple suggestion online that looked like a good idea at first. interface LoginService implements Remote {