| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static char[] | |
| public static char[] | readPassword(InputStream in, boolean
true if the password should be echoed on the screen isEchoOn)Reads user password from given input stream. |
| ALLOW_STDIN | back to summary |
|---|---|
| private static final boolean ALLOW_STDIN | |
| Password | back to summary |
|---|---|
| public Password() | |
| readPassword | back to summary |
|---|---|
| public static char[] readPassword(InputStream in) throws IOException Reads user password from given input stream. | |
| readPassword | back to summary |
|---|---|
| public static char[] readPassword(InputStream in, boolean isEchoOn) throws IOException Reads user password from given input stream.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final Console | |
| private static final JdkConsoleImpl | |
| private static final CharsetEncoder |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static byte[] | Returns: its byte[] format, equivalent to new String(pass).getBytes() but String is immutable and cannot be cleaned up.a char[] pass)Convert a password read from console into its original bytes. |
| public static char[] |
| c1 | back to summary |
|---|---|
| private static final Console c1 | |
| c2 | back to summary |
|---|---|
| private static final JdkConsoleImpl c2 | |
| enc | back to summary |
|---|---|
| private static final CharsetEncoder enc | |
| ConsoleHolder | back to summary |
|---|---|
| private ConsoleHolder() | |
| consoleIsAvailable | back to summary |
|---|---|
| public static boolean consoleIsAvailable() | |
| convertToBytes | back to summary |
|---|---|
| public static byte[] convertToBytes(char[] pass) Convert a password read from console into its original bytes.
| |
| readPassword | back to summary |
|---|---|
| public static char[] readPassword() | |