Passing user credentials to child processes

E

estadtherr

I have a Java application that requires a user to log in, at which time
the user is authenticated using the standard JAAS LoginContext. This
initial application needs to start a set of child processes (using
Runtime.exec()). These child processes need to inherit the user-based
credentials of the initial application, but I don't want the user to
have to type their username and password for every child process. Is
there a secure way for the child processes to inherit the
authentication results from the parent process? I've thought about
command line arguments and environment variables, but they all open the
child processes up to spoofing the credentials. Has anyone else solved
this issue?

Thanks!
-Eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top