You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Dutertry Nicolas <Ni...@HRACCESS.com> on 2014/05/09 11:33:39 UTC

Read a password from karaf shell

Hi,

I would like to write a command that reads a password from the user input in the Karaf shell with echoing disabled.
I tried to use java.io.Console.readPassword() but it does not work in Karaf context.

Do you know how can I do ?

-- 
Nicolas Dutertry 
HR Access - http://www.hraccess.com 



Re: Read a password from karaf shell

Posted by Jon Anstey <ja...@gmail.com>.
There is an example in
https://github.com/fabric8io/fabric8/blob/master/fabric/fabric-utils/src/main/java/io/fabric8/utils/shell/ShellUtils.javareadline
method.
On May 11, 2014 2:11 AM, "Dutertry Nicolas" <Ni...@hraccess.com>
wrote:

> Hi,
>
> I would like to write a command that reads a password from the user input
> in the Karaf shell with echoing disabled.
> I tried to use java.io.Console.readPassword() but it does not work in
> Karaf context.
>
> Do you know how can I do ?
>
> --
> Nicolas Dutertry
> HR Access - http://www.hraccess.com
>
>
>