Allow password hiding even if there is no `System.console`. A manual test is included.
------------- Commit messages: - the fix Changes: https://git.openjdk.org/jdk/pull/27196/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27196&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8354469 Stats: 278 lines in 3 files changed: 247 ins; 4 del; 27 mod Patch: https://git.openjdk.org/jdk/pull/27196.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27196/head:pull/27196 PR: https://git.openjdk.org/jdk/pull/27196