[ http://issues.apache.org/jira/browse/GERONIMO-2216?page=all ]

Jason Dillon updated GERONIMO-2216:
-----------------------------------

    Attachment: GERONIMO-2216.diff

Attached patch reworks the PasswordReader into an InputReader, which uses the 
JLine library to provide console access and masking for passwords.

Hooked up to the shutdown command and the related car deps, so running 
shutdown.sh w/o flags will result in something like:

{noformat}
Username: system
Password: *******
{noformat}

This works for unix systems, windows and when no supported terminal is 
detected, reverts to the default brute force method that existed in 
PasswordReader, which was incorporated into JLine w/version 0.9.9

This patch fixed the issue of parts of the password being displayed when 
entered too fast.


> Use JLine API to get password interactivly when using shutdown
> --------------------------------------------------------------
>
>                 Key: GERONIMO-2216
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2216
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: startup/shutdown
>    Affects Versions: 1.2
>            Reporter: Jason Dillon
>         Assigned To: Jason Dillon
>            Priority: Minor
>         Attachments: GERONIMO-2216.diff
>
>
> Sometimes when interactively entering a password for shutdown, if the 
> password is typed too fast, some of the chars are visible for a brief period.
> JLine provides the ability to mask the input as it is read (or omit it all 
> together):
>  * http://jline.sourceforge.net/#reading_password

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to