I need to communicate to a RMI Server running on unix. I will pass a set of unix credentials to the rmi server.
Is it possible to spawn another thread on unix which can assume the identity of the credentials I pass ? As an alternative I need to use the commons api or jscape api to programmatically telnet into unix and then use that telnet session run my programs which need to take advantage of the unix security model.

Sameer