| The capability is already there, it's just not well documented. It's built into the command-line processing library the Remoting agent library uses. If a command-line argument begins with a '@' (ampersand), then the rest of that argument is interpreted as the path to a file. Each line in the file is inserted as a command-line argument. Using the `-secret` parameter, you would create a file with a single line containing the secret key. Then reference it in the command-line something like this: "java -jar agent.jar -jnlpUrl -secret @</path/to/secret/file>". You could also create a four line file something like this:
-jnlpUrl http://somewhere/xx.jnlp -secret <SECRET>
and then invoke it like this: "java -jar agent.jar @</path/to/arguments/file>" It would be nice to assemble some better documentation on this if someone gets a chance. I've got a note to do it if I can get the time. |