geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Dillon (JIRA)" <...@geronimo.apache.org>
Subject [jira] Updated: (GERONIMO-2216) Use JLine API to get password interactivly when using shutdown
Date Wed, 09 Aug 2006 04:22:14 GMT
     [ 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

        

Mime
View raw message