users@glassfish.java.net

Re: Securing JDBC password

From: Harsha R A <Harsha.Ra_at_Sun.COM>
Date: Fri, 30 Nov 2007 12:14:15 +0530

Kedar,
I saw CreateAliasCmd class in cli-api .

http://fisheye5.cenqua.com/browse/glassfish/admin-cli/cli-api/src/java/com/sun/cli/jmx/cmd/CreateAliasCmd.java

I am not sure if this can be used for programmatically creating password
alias.

Thanks
Harsha

glassfish_at_javadesktop.org wrote, On Friday 30 November 2007 12:04 PM:
> Richard,
> Yes, unfortunately, there is no AMX equivalent for doing this. Check with llc_at_dev.java.net if
> there exists one. I don't think there is one.
>
> You can consider piping the stdin of sub-process to the stdout of the forking process and
> securely pass the password when the subprocess waits for it. I guess that's the only way you
> can do it without writing the database password on disk for a short period of time.
>
> Regards,
> Kedar
> [Message sent by forum member 'km' (km)]
>
> http://forums.java.net/jive/thread.jspa?messageID=247946
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>