This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- promptAndGetValueWithEchoCharacter("Enter the password", '*').. is buggy. Dont use
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 13, 2008
10:00 AM
Password Entry in Custom Console
Hi,
I am attempting to write a custom console action that allows the user to enter a password, then enter a password confirmation. So I have validation to repeat the process until the passwords are the same and conform to the password rules.
This works fine except the passwords are not disguised when entered. Is there a way I can do this through custom console code or do I have to use the Get Password action. In that case how would I get to my validation and force a repeat of the action.
Any help appreciated
thanks
Rod
I am attempting to write a custom console action that allows the user to enter a password, then enter a password confirmation. So I have validation to repeat the process until the passwords are the same and conform to the password rules.
This works fine except the passwords are not disguised when entered. Is there a way I can do this through custom console code or do I have to use the Get Password action. In that case how would I get to my validation and force a repeat of the action.
Any help appreciated
thanks
Rod
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 14, 2008
03:22 AM
AFAIK this password issue was some very old issue about Java behaviour on different platforms when it comes to hide the password characters.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 14, 2008
04:18 AM
In consoleUtils, use promptAndGetValueWithEchoCharacter to get your password echoed with the character of your choice:
e.g. ...promptAndGetValueWithEchoCharacter("Enter the password", '*')...
e.g. ...promptAndGetValueWithEchoCharacter("Enter the password", '*')...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 16, 2008
08:40 AM
that worked great
thanks
thanks
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 18, 2008
01:53 AM
Hi,
promptAndGetValueWithEchoCharacter("Enter the password", '*').. is buggy dont use it. List of bugs i found
1. first it will add one extra * by default and
2. if you type a little fast it shows the original chars
3. if you by any chance type back on password console .. u r in problem. After this whatever u type will be echoed using ur echo char. You will have to abort installation.
i will suggest you u use password class provided in java 1.6. The only problem is it doesn't echo's chars back. For me its acceptable as we run this in unix env. which is default behavior of all shells.
promptAndGetValueWithEchoCharacter("Enter the password", '*').. is buggy dont use it. List of bugs i found
1. first it will add one extra * by default and
2. if you type a little fast it shows the original chars
3. if you by any chance type back on password console .. u r in problem. After this whatever u type will be echoed using ur echo char. You will have to abort installation.
i will suggest you u use password class provided in java 1.6. The only problem is it doesn't echo's chars back. For me its acceptable as we run this in unix env. which is default behavior of all shells.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 01, 2009
10:06 AM
Yes, I definately get the problem listed at #2 with the Get Password Console panel.
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)