Question

I search the web for awhile but did not find an answer to this questions. Why there is the need for a client.policy file?

Maybe someone could point me to the Oracle page with that topic. I found abondon sites only.

While the server needs to specify the access levels, why I have to put this file in my client too?

I would assume that the client tries to connect to the server and the server decides if that access is allowed or not. Putting the definion on the client side fells a little bit odd for me.

Was it helpful?

Solution

Why there is the need for a client.policy file?

The only time a client needs a .policy file is if it is running under a SecurityManager, and the only time it needs to do that in RMI is if you are using the RMI codebase feature to download class files to the client.

It has nothing to do with access control by the server.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top