admin@glassfish.java.net

How can console pass a password or password alias to a command

From: Joe Di Pol <joe.dipol_at_oracle.com>
Date: Tue, 16 Nov 2010 08:15:21 -0800

I'm looking at this bug:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=14710

Basically we have a case where the console needs to pass
a password (or password alias) to a remote command.
create-node-ssh defines the sshpassword option as:

     @Param(name = "sshpassword", optional = true, password = true)
     private String sshpassword;

This gives us the ability to get the password (or password alias)
via the password file. But how does the console pass this parameter
via REST?

Is there something I need to do in the command? Or is this something
that needs to be handled via the REST layer?

As a last resort I guess I could define a second hidden option
that is not defined "password = true", but was hoping for a
cleaner solution.

Thanks,

Joe