admin@glassfish.java.net

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

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Tue, 16 Nov 2010 10:21:26 -0600

  Can the REST interface write the password to a temporary file, and
pass in the --passwordfile option?

Tom

On 11/16/2010 10:15 AM, Joe Di Pol wrote:
>
> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>